patch-2.0.35 linux/fs/fcntl.c

Next file: linux/fs/nfs/dir.c
Previous file: linux/fs/fat/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.34/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -102,7 +102,7 @@
 			/*
 			 * XXX If f_owner is a process group, the
 			 * negative return value will get converted
-			 * into an error.  Oops.  If we keep the the
+			 * into an error.  Oops.  If we keep the
 			 * current syscall conventions, the only way
 			 * to fix this will be in libc.
 			 */
@@ -134,7 +134,7 @@
 			match = -p->pgrp;
 		if (pid != match)
 			continue;
-		if (!euid &&
+		if ((euid != 0) &&
 		    (euid ^ p->suid) && (euid ^ p->uid) &&
 		    (uid ^ p->suid) && (uid ^ p->uid))
 			continue;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov