Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 10219bdab71a4ca8bcb9e1cc5554ee53 > files > 16

sysvinit-2.86-6mdv2008.0.src.rpm

--- sysvinit-2.86/src/shutdown.c.shutdown	2005-06-27 08:57:31.000000000 +0200
+++ sysvinit-2.86/src/shutdown.c	2005-06-27 08:58:25.000000000 +0200
@@ -15,6 +15,11 @@
  *
  * Version:	@(#)shutdown  2.86-1  31-Jul-2004  miquels@cistron.nl
  *
+ * Contributor :
+ * 		2000-01-03 Yoann Vandoorselaere
+ *			- Take care of the -a options even if shutdown.allow doesn't exist
+ *
+ *
  *		This file is part of the sysvinit suite,
  *		Copyright 1991-2004 Miquel van Smoorenburg.
  *
@@ -454,7 +459,9 @@
 	int			useacl = 0;
 	int			pid = 0;
 	int			user_ok = 0;
-
+	
+	downusers[0] = 0;
+	
 	/* We can be installed setuid root (executable for a special group) */
 	realuid = getuid();
 	setuid(geteuid());
@@ -523,7 +530,8 @@
 	}
 
 	/* Do we need to use the shutdown.allow file ? */
-	if (useacl && (fp = fopen(SDALLOW, "r")) != NULL) {
+	if (useacl)
+	  if ((fp = fopen(SDALLOW, "r")) != NULL) {
 
 		/* Read /etc/shutdown.allow. */
 		i = 0;