From: Alan Cox Date: Tue, 11 Nov 2014 23:25:24 +0000 (+0000) Subject: syscall_other: Fix bracketing X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=8e8ac2f93743ce239e5b12e335b621f207f0eefe;p=FUZIX.git syscall_other: Fix bracketing --- diff --git a/Kernel/syscall_other.c b/Kernel/syscall_other.c index 44133851..9d0f3b9b 100644 --- a/Kernel/syscall_other.c +++ b/Kernel/syscall_other.c @@ -204,7 +204,7 @@ int16_t _rmdir(void) } /* Parent must be writable */ - if (!getperm(parent) & OTH_WR) + if (!(getperm(parent) & OTH_WR)) goto nogood; /* Remove the directory entry */