syscall_other: Fix bracketing
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 23:25:24 +0000 (23:25 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 11 Nov 2014 23:25:24 +0000 (23:25 +0000)
Kernel/syscall_other.c

index 4413385..9d0f3b9 100644 (file)
@@ -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 */