patch-2.4.19 linux-2.4.19/kernel/sys.c

Next file: linux-2.4.19/kernel/sysctl.c
Previous file: linux-2.4.19/kernel/softirq.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/kernel/sys.c linux-2.4.19/kernel/sys.c
@@ -655,8 +655,8 @@
 			wmb();
 		}
 		current->euid = euid;
-		current->fsuid = euid;
 	}
+	current->fsuid = current->euid;
 	if (suid != (uid_t) -1)
 		current->suid = suid;
 
@@ -701,8 +701,8 @@
 			wmb();
 		}
 		current->egid = egid;
-		current->fsgid = egid;
 	}
+	current->fsgid = current->egid;
 	if (rgid != (gid_t) -1)
 		current->gid = rgid;
 	if (sgid != (gid_t) -1)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)