[BusyBox-cvs] busybox/libpwdgrp shadow.c,1.4,1.5

Erik Andersen andersen at busybox.net
Thu Jun 26 08:53:53 UTC 2003


Update of /var/cvs/busybox/libpwdgrp
In directory winder:/tmp/cvs-serv11976/libpwdgrp

Modified Files:
	shadow.c 
Log Message:
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen


Index: shadow.c
===================================================================
RCS file: /var/cvs/busybox/libpwdgrp/shadow.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- shadow.c	19 Mar 2003 09:12:14 -0000	1.4
+++ shadow.c	26 Jun 2003 08:53:49 -0000	1.5
@@ -54,8 +54,7 @@
 	if (shadow) {
 		rewind(shadow);
 	} else {
-		if ((shadow = fopen("/etc/shadow", "r")) == NULL)
-			bb_perror_msg_and_die("/etc/shadow");
+		shadow == bb_xfopen(SHADOW_FILE, "r");
 	}
 }
 



More information about the busybox-cvs mailing list