hjfs: fix permcheck bug

This commit is contained in:
cinap_lenrek 2012-08-11 12:02:05 +02:00
parent 6f442a9b07
commit 6538711ef0

View file

@ -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;
}