X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fsync.c;h=84746311f3227498048aefbc97253db84655dcba;hb=931ae9d2f8a5d2e0ae88b33067f761b36d30e070;hp=d5816806569ee2d6b2968d1fc19896955ad0f9d5;hpb=1d1d2f9b1879775a8e04bcd189b66a058405c9c1;p=oweals%2Fbusybox.git diff --git a/coreutils/sync.c b/coreutils/sync.c index d58168065..84746311f 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c @@ -20,15 +20,17 @@ * */ -#include +/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */ + #include #include #include "busybox.h" extern int sync_main(int argc, char **argv) { - if (argc > 1 && **(argv + 1) == '-') - show_usage(); + bb_warn_ignoring_args(argc - 1); + sync(); + return(EXIT_SUCCESS); }