diff options
author | Mark Whitley <markw@lineo.com> | 2001-03-02 17:47:17 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-03-02 17:47:17 +0000 |
commit | 016771834af01be118621f89d92a3ecb29516a4f (patch) | |
tree | 2628aa895787164f2559b6d0228731b9accf3777 | |
parent | 39842defdab7ccb3438adf8258a164f39696ccb2 (diff) | |
download | busybox-w32-016771834af01be118621f89d92a3ecb29516a4f.tar.gz busybox-w32-016771834af01be118621f89d92a3ecb29516a4f.tar.bz2 busybox-w32-016771834af01be118621f89d92a3ecb29516a4f.zip |
Changed exit code from -1 to 0 when busybox is invoked with no args.
(Closes bug #1114.)
-rw-r--r-- | applets/busybox.c | 2 | ||||
-rw-r--r-- | busybox.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index 5fec3d5ec..0250e4c10 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -166,7 +166,7 @@ int busybox_main(int argc, char **argv) | |||
166 | } | 166 | } |
167 | } | 167 | } |
168 | fprintf(stderr, "\n\n"); | 168 | fprintf(stderr, "\n\n"); |
169 | exit(-1); | 169 | exit(0); |
170 | } | 170 | } |
171 | 171 | ||
172 | /* Flag that we've been here already */ | 172 | /* Flag that we've been here already */ |
@@ -166,7 +166,7 @@ int busybox_main(int argc, char **argv) | |||
166 | } | 166 | } |
167 | } | 167 | } |
168 | fprintf(stderr, "\n\n"); | 168 | fprintf(stderr, "\n\n"); |
169 | exit(-1); | 169 | exit(0); |
170 | } | 170 | } |
171 | 171 | ||
172 | /* Flag that we've been here already */ | 172 | /* Flag that we've been here already */ |