diff options
author | dzwdz | 2022-09-21 18:07:21 +0200 |
---|---|---|
committer | dzwdz | 2022-09-21 18:07:21 +0200 |
commit | 8b3d3950ca115f1c614e85db9f25fc683864db14 (patch) | |
tree | 155705b792ec7e27075252744a9d01f7d7932c38 /src/user/app/login | |
parent | 95be8a2f9eda62b8061e02ee129a89c6dc54870b (diff) |
user/lib: ufs_wait
Diffstat (limited to 'src/user/app/login')
-rw-r--r-- | src/user/app/login/login.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/user/app/login/login.c b/src/user/app/login/login.c index 59befb1..5d9eb36 100644 --- a/src/user/app/login/login.c +++ b/src/user/app/login/login.c @@ -36,18 +36,10 @@ static void drv(const char *user) { char *buf = malloc(PATH_MAX); for (;;) { struct ufs_request req; - handle_t reqh = _syscall_fs_wait(buf, PATH_MAX, &req); + handle_t reqh = ufs_wait(buf, PATH_MAX, &req); if (reqh < 0) break; - switch (req.op) { case VFSOP_OPEN: - /* null terminate for segcmp */ - if (req.len == PATH_MAX) { - _syscall_fs_respond(reqh, NULL, -1, 0); - break; - } - buf[req.len] = '\0'; - if (segcmp(buf, 1, "Users") && segcmp(buf, 2, user)) { // /Users/$user/** forward_open(reqh, buf, req.len, req.flags); } else if (segcmp(buf, 1, "Users") && segcmp(buf, 3, "private")) { // /Users/*/private/** |