From 6538711ef0202961c3f2b3260645cf1dce2f3627 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 11 Aug 2012 12:02:05 +0200 Subject: hjfs: fix permcheck bug --- sys/src/cmd/hjfs/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/hjfs/auth.c b/sys/src/cmd/hjfs/auth.c index 15a4f13c0..fbc5574d5 100644 --- a/sys/src/cmd/hjfs/auth.c +++ b/sys/src/cmd/hjfs/auth.c @@ -313,7 +313,7 @@ permcheck(Fs *fs, Dentry *d, short uid, int mode) case OEXEC: return (perm & 1) != 0; case ORDWR: - return (perm & 5) == 5; + return (perm & 6) == 6; } return 0; } -- cgit v1.2.3