svn commit: trunk/busybox/editors

landley at busybox.net landley at busybox.net
Mon Jan 9 05:27:00 UTC 2006


Author: landley
Date: 2006-01-08 21:26:58 -0800 (Sun, 08 Jan 2006)
New Revision: 13198

Log:
Bug 112, return value of awk should be /256.  In reality, we should probably
be using WEXITSTATUS(), but until I can figure out why the heck that would
want to do (*(int *) &(status)) on the value, I'm happy just fixing the bug we
actually see.


Modified:
   trunk/busybox/editors/awk.c


Changeset:
Modified: trunk/busybox/editors/awk.c
===================================================================
--- trunk/busybox/editors/awk.c	2006-01-09 04:12:11 UTC (rev 13197)
+++ trunk/busybox/editors/awk.c	2006-01-09 05:26:58 UTC (rev 13198)
@@ -2370,7 +2370,7 @@
 
 			  case F_sy:
 				fflush(NULL);
-				R.d = (L.s && *L.s) ? system(L.s) : 0;
+				R.d = (L.s && *L.s) ? (system(L.s) >> 8) : 0;
 				break;
 
 			  case F_ff:




More information about the busybox-cvs mailing list