diff options
Diffstat (limited to 'coreutils/sync.c')
-rw-r--r-- | coreutils/sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/coreutils/sync.c b/coreutils/sync.c index 6fa5b38..e7aa445 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c @@ -1,11 +1,12 @@ #include "internal.h" -const char sync_usage[] = "sync\n" -"\n" -"\tWrite all buffered filesystem blocks to disk.\n"; - extern int -sync_main(struct FileInfo * i, int argc, char * * argv) +sync_main(int argc, char * * argv) { + if ( **(argv+1) == '-' ) { + fprintf(stderr, "Usage: sync\nWrite all buffered filesystem blocks to disk.\n"); + exit(FALSE); + } return sync(); } + |