patch-1.3.92 linux/include/linux/sched.h
Next file: linux/include/linux/soundcard.h
Previous file: linux/include/linux/pci.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sat Apr 20 21:30:15 1996
- Orig file:
v1.3.91/linux/include/linux/sched.h
- Orig date:
Mon Mar 25 10:22:43 1996
diff -u --recursive --new-file v1.3.91/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -361,9 +361,11 @@
*/
extern inline int suser(void)
{
- if (current->euid == 0)
+ if (current->euid == 0) {
current->flags |= PF_SUPERPRIV;
- return (current->euid == 0);
+ return 1;
+ }
+ return 0;
}
extern void copy_thread(int, unsigned long, unsigned long, struct task_struct *, struct pt_regs *);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this