wok-stable diff busybox/stuff/busybox-1.10.0-cpio-mkdir.u @ rev 544
busybox/cpio: avoid cannot make dir warnings
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 12 12:36:17 2008 +0200 (2008-04-12) |
parents | |
children | b7ff56e3d9b4 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/busybox-1.10.0-cpio-mkdir.u Sat Apr 12 12:36:17 2008 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +--- busybox-1.10.0/archival/libunarchive/data_extract_all.c 1.5 ++++ busybox-1.10.0/archival/libunarchive/data_extract_all.c 1.6 +@@ -77,7 +77,7 @@ 1.7 + } 1.8 + case S_IFDIR: 1.9 + res = mkdir(file_header->name, file_header->mode); 1.10 +- if ((res == -1) && (errno != EISDIR) 1.11 ++ if ((res == -1) && (errno != EISDIR) && (errno != EEXIST) 1.12 + && !(archive_handle->flags & ARCHIVE_EXTRACT_QUIET) 1.13 + ) { 1.14 + bb_perror_msg("cannot make dir %s", file_header->name);