wok view busybox/stuff/busybox-1.10.0-cpio-mkdir.u @ rev 2174
Up screen (4.0.3), add screen-terminfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 12:53:23 2009 +0000 (2009-02-08) |
parents | b796e9417abb |
children |
line source
1 --- busybox-1.10.0/archival/libunarchive/data_extract_all.c
2 +++ busybox-1.10.0/archival/libunarchive/data_extract_all.c
3 @@ -38,7 +38,8 @@
4 }
5 }
6 else if (statbuf.st_mtime <= file_header->mtime) {
7 - if (!(archive_handle->flags & ARCHIVE_EXTRACT_QUIET)) {
8 + if (!(archive_handle->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 @@
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->flags & ARCHIVE_EXTRACT_QUIET)
20 ) {
21 bb_perror_msg("cannot make dir %s", file_header->name);