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
- Lines: 20
- Date:
Fri Aug 2 17:39:46 2002
- Orig file:
linux-2.4.18/kernel/sys.c
- Orig date:
Mon Feb 25 11:38:13 2002
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)