diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-27 03:20:00 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-10-27 03:20:00 +0000 |
commit | c4f0f3ed8ac4faf18b2a33b9a1f99fd04b2c0db0 (patch) | |
tree | 03475744acb5b65a94debb716127b0461d50b094 | |
parent | 23601a678c492f4c80460d6aeaf2128bfc709d71 (diff) | |
download | busybox-w32-c4f0f3ed8ac4faf18b2a33b9a1f99fd04b2c0db0.tar.gz busybox-w32-c4f0f3ed8ac4faf18b2a33b9a1f99fd04b2c0db0.tar.bz2 busybox-w32-c4f0f3ed8ac4faf18b2a33b9a1f99fd04b2c0db0.zip |
Wrap exclude_file() inside a #ifdef CONFIG_FEATURE_TAR_EXCLUDE block
git-svn-id: svn://busybox.net/trunk/busybox@3592 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/tar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c index 9459a5061..815949767 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -315,6 +315,7 @@ writeTarHeader(struct TarBallInfo *tbInfo, const char *header_name, | |||
315 | return ( TRUE); | 315 | return ( TRUE); |
316 | } | 316 | } |
317 | 317 | ||
318 | # if defined CONFIG_FEATURE_TAR_EXCLUDE | ||
318 | static int exclude_file(char **excluded_files, const char *file) | 319 | static int exclude_file(char **excluded_files, const char *file) |
319 | { | 320 | { |
320 | int i; | 321 | int i; |
@@ -341,6 +342,7 @@ static int exclude_file(char **excluded_files, const char *file) | |||
341 | 342 | ||
342 | return 0; | 343 | return 0; |
343 | } | 344 | } |
345 | #endif | ||
344 | 346 | ||
345 | static int writeFileToTarball(const char *fileName, struct stat *statbuf, void* userData) | 347 | static int writeFileToTarball(const char *fileName, struct stat *statbuf, void* userData) |
346 | { | 348 | { |