public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b1382
)
stat: propogate EFAULT errors
author
Alan Cox
<alan@linux.intel.com>
Sat, 16 May 2015 15:46:00 +0000
(16:46 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 16 May 2015 15:46:00 +0000
(16:46 +0100)
Kernel/syscall_fs.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_fs.c
b/Kernel/syscall_fs.c
index
24a6265
..
aef1df8
100644
(file)
--- a/
Kernel/syscall_fs.c
+++ b/
Kernel/syscall_fs.c
@@
-111,11
+111,12
@@
arg_t _sync(void)
arg_t _stat(void)
{
inoptr ino;
+ int err;
if (!(ino = n_open(path, NULLINOPTR)))
return (-1);
- stcpy(ino, buf);
+
err =
stcpy(ino, buf);
i_deref(ino);
- return
(0)
;
+ return
err
;
}
#undef path