Changes in uspace/app/untar/main.c [29b4888:6afc9d7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/untar/main.c
r29b4888 r6afc9d7 103 103 static int handle_directory(const tar_header_t *header, FILE *tarfile) 104 104 { 105 int rc = mkdir(header->filename, 0755); 106 if ((rc == EEXIST) || (rc == EEXISTS)) { 107 // printf("Note: directory %s already exists.\n", header->filename); 108 rc = EOK; 109 } 110 if (rc != EOK) { 111 fprintf(stderr, "Failed to create directory %s: %s.\n", 112 header->filename, str_error(rc)); 113 return rc; 105 if (mkdir(header->filename, 0755) != 0) { 106 if (errno != EEXIST) { 107 fprintf(stderr, "Failed to create directory %s: %s.\n", 108 header->filename, str_error(errno)); 109 return errno; 110 } 114 111 } 115 112
Note:
See TracChangeset
for help on using the changeset viewer.