projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rewrite -c and -b processing to shrink code and eliminate buffer overrun.
[oweals/busybox.git]
/
coreutils
/
sync.c
diff --git
a/coreutils/sync.c
b/coreutils/sync.c
index fc5a42b8a7fe54f7cbc091bcb9f322980e938438..ee22ae109c5a222dd29a958ef375138f54e4220e 100644
(file)
--- a/
coreutils/sync.c
+++ b/
coreutils/sync.c
@@
-21,13
+21,15
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <unistd.h>
+#include "busybox.h"
extern int sync_main(int argc, char **argv)
{
if (argc > 1 && **(argv + 1) == '-')
show_usage();
extern int sync_main(int argc, char **argv)
{
if (argc > 1 && **(argv + 1) == '-')
show_usage();
- return(sync());
+ sync();
+ return(EXIT_SUCCESS);
}
}