patch-2.1.108 linux/fs/fcntl.c

Next file: linux/fs/proc/array.c
Previous file: linux/fs/coda/stats.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.107/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -191,7 +191,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