Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-03 19:52:50 +0300
committerEric Andersen <andersen@codepoet.org>1999-11-03 19:52:50 +0300
commitbe971d6b693ca9cd1c9aa9eb6053aa2592c40547 (patch)
tree218f56d6ffdbb873e3d00d0ba3c48a17451d6668 /sync.c
parent219d6f5e0cb4c8e1a9a5f554a8768c7afb12b0b4 (diff)
More init fixes. Fixed sync segfault.
-Erik
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sync.c b/sync.c
index b9f52c8b0..cb4690c02 100644
--- a/sync.c
+++ b/sync.c
@@ -26,9 +26,9 @@
extern int
sync_main(int argc, char * * argv)
{
- if ( **(argv+1) == '-' ) {
+ if ( argc>1 && **(argv+1) == '-' ) {
usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
}
- return sync();
+ exit( sync());
}