diff options
author | Tim Riker <tim@rikers.org> | 2001-06-22 00:27:11 +0000 |
---|---|---|
committer | Tim Riker <tim@rikers.org> | 2001-06-22 00:27:11 +0000 |
commit | 837097648e88080239dd279489b482d9bb91e765 (patch) | |
tree | 5494500399c98471fa1b60a2089c41041d1498c7 | |
parent | fbbd360b3c680ea76e67c04413d0a1430caf07bd (diff) | |
download | busybox-w32-837097648e88080239dd279489b482d9bb91e765.tar.gz busybox-w32-837097648e88080239dd279489b482d9bb91e765.tar.bz2 busybox-w32-837097648e88080239dd279489b482d9bb91e765.zip |
comment cleanup
-rw-r--r-- | archival/tar.c | 2 | ||||
-rw-r--r-- | libbb/unarchive.c | 3 | ||||
-rw-r--r-- | tar.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index e68194ff7..c18e66fd2 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -403,7 +403,7 @@ tarExtractDirectory(TarInfo *header, int extractFlag, int tostdoutFlag) | |||
403 | return( FALSE); | 403 | return( FALSE); |
404 | } | 404 | } |
405 | /* make the final component, just in case it was | 405 | /* make the final component, just in case it was |
406 | * omitted by create_path() (which will skip the | 406 | * omitted by make_directory() (which will skip the |
407 | * directory if it doesn't have a terminating '/') */ | 407 | * directory if it doesn't have a terminating '/') */ |
408 | if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) { | 408 | if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) { |
409 | perror_msg("%s", header->name); | 409 | perror_msg("%s", header->name); |
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index 3fbd6ef31..f396bd724 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c | |||
@@ -139,8 +139,7 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f | |||
139 | } | 139 | } |
140 | break; | 140 | break; |
141 | case S_IFDIR: | 141 | case S_IFDIR: |
142 | /* Use create_path instead of mkdir incase prefix path | 142 | /* Use make_directory instead of mkdir in case prefix path hasn't been created */ |
143 | * hasnt been created */ | ||
144 | if (function & extract_create_dirs) { | 143 | if (function & extract_create_dirs) { |
145 | if (make_directory(full_name, file_entry->mode, FILEUTILS_RECUR) < 0) { | 144 | if (make_directory(full_name, file_entry->mode, FILEUTILS_RECUR) < 0) { |
146 | return NULL; | 145 | return NULL; |
@@ -403,7 +403,7 @@ tarExtractDirectory(TarInfo *header, int extractFlag, int tostdoutFlag) | |||
403 | return( FALSE); | 403 | return( FALSE); |
404 | } | 404 | } |
405 | /* make the final component, just in case it was | 405 | /* make the final component, just in case it was |
406 | * omitted by create_path() (which will skip the | 406 | * omitted by make_directory() (which will skip the |
407 | * directory if it doesn't have a terminating '/') */ | 407 | * directory if it doesn't have a terminating '/') */ |
408 | if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) { | 408 | if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) { |
409 | perror_msg("%s", header->name); | 409 | perror_msg("%s", header->name); |