comment cleanup
This commit is contained in:
parent
fbbd360b3c
commit
837097648e
@ -403,7 +403,7 @@ tarExtractDirectory(TarInfo *header, int extractFlag, int tostdoutFlag)
|
||||
return( FALSE);
|
||||
}
|
||||
/* make the final component, just in case it was
|
||||
* omitted by create_path() (which will skip the
|
||||
* omitted by make_directory() (which will skip the
|
||||
* directory if it doesn't have a terminating '/') */
|
||||
if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) {
|
||||
perror_msg("%s", header->name);
|
||||
|
@ -139,8 +139,7 @@ char *extract_archive(FILE *src_stream, FILE *out_stream, const file_header_t *f
|
||||
}
|
||||
break;
|
||||
case S_IFDIR:
|
||||
/* Use create_path instead of mkdir incase prefix path
|
||||
* hasnt been created */
|
||||
/* Use make_directory instead of mkdir in case prefix path hasn't been created */
|
||||
if (function & extract_create_dirs) {
|
||||
if (make_directory(full_name, file_entry->mode, FILEUTILS_RECUR) < 0) {
|
||||
return NULL;
|
||||
|
2
tar.c
2
tar.c
@ -403,7 +403,7 @@ tarExtractDirectory(TarInfo *header, int extractFlag, int tostdoutFlag)
|
||||
return( FALSE);
|
||||
}
|
||||
/* make the final component, just in case it was
|
||||
* omitted by create_path() (which will skip the
|
||||
* omitted by make_directory() (which will skip the
|
||||
* directory if it doesn't have a terminating '/') */
|
||||
if (mkdir(header->name, header->mode) < 0 && errno != EEXIST) {
|
||||
perror_msg("%s", header->name);
|
||||
|
Loading…
Reference in New Issue
Block a user