[BusyBox-cvs] busybox/libbb run_parts.c,1.3,1.4

Glenn McGrath bug1 at busybox.net
Mon Jan 20 23:34:16 UTC 2003


Update of /var/cvs/busybox/libbb
In directory winder:/tmp/cvs-serv11995/libbb

Modified Files:
	run_parts.c 
Log Message:
Make test mode output same as official version


Index: run_parts.c
===================================================================
RCS file: /var/cvs/busybox/libbb/run_parts.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- run_parts.c	21 Nov 2002 22:17:11 -0000	1.3
+++ run_parts.c	20 Jan 2003 23:34:12 -0000	1.4
@@ -75,9 +75,9 @@
 			perror_msg_and_die("failed to stat component %s", filename);
 		}
 		if (S_ISREG(st.st_mode) && !access(filename, X_OK)) {
-			if (test_mode)
-				printf("run-parts would run %s\n", filename);
-			else {
+			if (test_mode) {
+				puts("%s", filename);
+			} else {
 				/* exec_errno is common vfork variable */
 				volatile int exec_errno = 0;
 				int result;




More information about the busybox-cvs mailing list