diff options
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,9 +26,9 @@ | |||
26 | extern int | 26 | extern int |
27 | sync_main(int argc, char * * argv) | 27 | sync_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 | ||