aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sync.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-03 16:52:50 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-03 16:52:50 +0000
commitbe971d6b693ca9cd1c9aa9eb6053aa2592c40547 (patch)
tree218f56d6ffdbb873e3d00d0ba3c48a17451d6668 /coreutils/sync.c
parent219d6f5e0cb4c8e1a9a5f554a8768c7afb12b0b4 (diff)
downloadbusybox-w32-be971d6b693ca9cd1c9aa9eb6053aa2592c40547.tar.gz
busybox-w32-be971d6b693ca9cd1c9aa9eb6053aa2592c40547.tar.bz2
busybox-w32-be971d6b693ca9cd1c9aa9eb6053aa2592c40547.zip
More init fixes. Fixed sync segfault.
-Erik
Diffstat (limited to 'coreutils/sync.c')
-rw-r--r--coreutils/sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/sync.c b/coreutils/sync.c
index b9f52c8b0..cb4690c02 100644
--- a/coreutils/sync.c
+++ b/coreutils/sync.c
@@ -26,9 +26,9 @@
26extern int 26extern int
27sync_main(int argc, char * * argv) 27sync_main(int argc, char * * argv)
28{ 28{
29 if ( **(argv+1) == '-' ) { 29 if ( argc>1 && **(argv+1) == '-' ) {
30 usage( "sync\nWrite all buffered filesystem blocks to disk.\n"); 30 usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
31 } 31 }
32 return sync(); 32 exit( sync());
33} 33}
34 34