diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
commit | e356371f09df87ebab2d7e3d816de1147768dfa9 (patch) | |
tree | 4932209fc8799bb63006c3ebb11b9a438ae34342 /src/kernel/user/syscall.c | |
parent | 969c8cacc50e8c39ddbc19e05f3f5b98c34bde01 (diff) | |
download | kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.tar.gz kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.zip |
Change VFS interface : handles no longer visible to underlying FS.
Diffstat (limited to 'src/kernel/user/syscall.c')
-rw-r--r-- | src/kernel/user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c index 3def3b5..3041c6d 100644 --- a/src/kernel/user/syscall.c +++ b/src/kernel/user/syscall.c @@ -237,9 +237,9 @@ static uint32_t readdir_sc(sc_args_t args) { fs_handle_t *h = proc_read_fd(current_process(), args.a); if (h == 0) return false; - dirent_t *o = (dirent_t*)args.b; + dirent_t *o = (dirent_t*)args.c; probe_for_write(o, sizeof(dirent_t)); - return file_readdir(h, o); + return file_readdir(h, args.b, o); } static uint32_t stat_open_sc(sc_args_t args) { |