wok-6.x view busybox/stuff/busybox-1.12.0-cpio-mkdir.u @ rev 1299
Up busybox (1.12.0) with built in module-init-tools
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 21 20:11:27 2008 +0000 (2008-08-21) |
parents | |
children | d84c7ed6eeb4 |
line source
1 --- busybox-1.12.0/archival/libunarchive/data_extract_all.c
2 +++ busybox-1.12.0/archival/libunarchive/data_extract_all.c
3 @@ -38,7 +38,8 @@ void FAST_FUNC data_extract_all(archive_
4 }
5 }
6 else if (statbuf.st_mtime <= file_header->mtime) {
7 - if (!(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET)) {
8 + if (!(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET) &&
9 + (file_header->mode & S_IFMT) != S_IFDIR) {
10 bb_error_msg("%s not created: newer or "
11 "same age file exists", file_header->name);
12 }
13 @@ -77,7 +78,7 @@ void FAST_FUNC data_extract_all(archive_
14 }
15 case S_IFDIR:
16 res = mkdir(file_header->name, file_header->mode);
17 - if ((res == -1) && (errno != EISDIR)
18 + if ((res == -1) && (errno != EISDIR) && (errno != EEXIST)
19 && !(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET)
20 ) {
21 bb_perror_msg("cannot make dir %s", file_header->name);