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

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