Fix handling of permission addition and removal (e.g., o-r).
[oweals/busybox.git] / sync.c
diff --git a/sync.c b/sync.c
index 8f101cf17a219efbe10a4c980ac6d74dd3daf17c..ee22ae109c5a222dd29a958ef375138f54e4220e 100644 (file)
--- a/sync.c
+++ b/sync.c
  *
  */
 
-#include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include "busybox.h"
 
 extern int sync_main(int argc, char **argv)
 {
        if (argc > 1 && **(argv + 1) == '-')
-               usage(sync_usage);
-       return(sync());
+               show_usage();
+       sync();
+       return(EXIT_SUCCESS);
 }