svn commit: trunk/busybox: applets shell

vda at busybox.net vda at busybox.net
Fri May 4 07:54:38 PDT 2007


Author: vda
Date: 2007-05-04 07:54:36 -0700 (Fri, 04 May 2007)
New Revision: 18557

Log:
applets: fix compile-time warning


Modified:
   trunk/busybox/applets/applets.c
   trunk/busybox/shell/README


Changeset:
Modified: trunk/busybox/applets/applets.c
===================================================================
--- trunk/busybox/applets/applets.c	2007-05-04 14:13:17 UTC (rev 18556)
+++ trunk/busybox/applets/applets.c	2007-05-04 14:54:36 UTC (rev 18557)
@@ -337,7 +337,6 @@
 #if ENABLE_FEATURE_SUID
 static void check_suid(const struct bb_applet *applet)
 {
-	uid_t uid;
 	gid_t rgid;  /* real gid */
 
 	if (ruid == 0) /* set by parse_config_file() */
@@ -346,6 +345,7 @@
 
 #if ENABLE_FEATURE_SUID_CONFIG
 	if (suid_cfg_readable) {
+		uid_t uid;
 		struct BB_suid_config *sct;
 		mode_t m;
 

Modified: trunk/busybox/shell/README
===================================================================
--- trunk/busybox/shell/README	2007-05-04 14:13:17 UTC (rev 18556)
+++ trunk/busybox/shell/README	2007-05-04 14:54:36 UTC (rev 18557)
@@ -1,8 +1,13 @@
 Various bits of what is known about busybox shells, in no particular order.
 
 2007-05-03
-hush: new bug spotted: Ctrl-C on "while true; do true; done" kills shell,
-not just the loop.
+hush: new bug spotted: Ctrl-C on "while true; do true; done" doesn't
+work right:
+# while true; do true; done
+[1] 0 true <-- pressing Ctrl-C several times...
+[2] 0 true
+[3] 0 true
+Segmentation fault
 
 2007-05-03
 hush: update on "sleep 1 | exit 3; echo $?" bug.



More information about the busybox-cvs mailing list