From: Alan Cox Date: Tue, 30 Aug 2016 22:10:59 +0000 (+0100) Subject: open: fix bug introduced in handling of invalid directory paths during an open X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cac7b00003b79b46713b163b877e95f3b345e668;p=FUZIX.git open: fix bug introduced in handling of invalid directory paths during an open --- diff --git a/Kernel/syscall_fs3.c b/Kernel/syscall_fs3.c index 9cdf2f91..1473f174 100644 --- a/Kernel/syscall_fs3.c +++ b/Kernel/syscall_fs3.c @@ -53,7 +53,7 @@ arg_t _open(void) } } else { /* The n_open failed */ - if (udata.u_error == EFAULT) + if (udata.u_error == EFAULT || parent == NULL) goto cantopen; /* New file */