public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0db41fe
)
filesys: fix errno 0 failure with overlong path
author
Alan Cox
<alan@linux.intel.com>
Mon, 2 Apr 2018 22:01:02 +0000
(23:01 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 2 Apr 2018 22:01:02 +0000
(23:01 +0100)
Kernel/filesys.c
patch
|
blob
|
history
diff --git
a/Kernel/filesys.c
b/Kernel/filesys.c
index
ead41e6
..
675995d
100644
(file)
--- a/
Kernel/filesys.c
+++ b/
Kernel/filesys.c
@@
-17,8
+17,6
@@
* will be set to NULL.
* The last node parsed is saved in lastname and is useful to some system
* calls as they want a parent and to create the new node.
- *
- * FIXME: ENAMETOOLONG might be good to add
*/
char lastname[31];
@@
-30,6
+28,8
@@
static uint8_t getcf(void)
int16_t c;
c = ugetc(name);
if (c == -1 || name == nameend) {
+ if (name == nameend)
+ udata.u_error = ENAMETOOLONG;
n_open_fault = 1;
return 0;
}