diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-09 12:49:03 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-09 12:49:03 +0000 |
commit | 0c45bb23d21f6b3b8a371043fac7403790d57b20 (patch) | |
tree | e3a3377f46d5ee1e57db3cb775ad78ae746dbb91 /libbb/recursive_action.c | |
parent | d5d614c5f48a9151a257df717b46b8a850c1428b (diff) | |
download | busybox-w32-0c45bb23d21f6b3b8a371043fac7403790d57b20.tar.gz busybox-w32-0c45bb23d21f6b3b8a371043fac7403790d57b20.tar.bz2 busybox-w32-0c45bb23d21f6b3b8a371043fac7403790d57b20.zip |
tar: fix "xopen with O_CREAT" warning, improve zero padding write
(was doing zillions of 1-byte write syscalls)
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index d491b781b..28a493403 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c | |||
@@ -23,14 +23,10 @@ | |||
23 | * is so stinking huge. | 23 | * is so stinking huge. |
24 | */ | 24 | */ |
25 | int recursive_action(const char *fileName, | 25 | int recursive_action(const char *fileName, |
26 | int recurse, int followLinks, int depthFirst, | 26 | int recurse, int followLinks, int depthFirst, |
27 | int (*fileAction) (const char *fileName, | 27 | int (*fileAction) (const char *fileName, struct stat * statbuf, void* userData), |
28 | struct stat * statbuf, | 28 | int (*dirAction) (const char *fileName, struct stat * statbuf, void* userData), |
29 | void* userData), | 29 | void* userData) |
30 | int (*dirAction) (const char *fileName, | ||
31 | struct stat * statbuf, | ||
32 | void* userData), | ||
33 | void* userData) | ||
34 | { | 30 | { |
35 | int status; | 31 | int status; |
36 | struct stat statbuf; | 32 | struct stat statbuf; |