wok-6.x view 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 source
1 --- busybox-1.10.0/archival/libunarchive/data_extract_all.c
2 +++ busybox-1.10.0/archival/libunarchive/data_extract_all.c
3 @@ -77,7 +77,7 @@
4 }
5 case S_IFDIR:
6 res = mkdir(file_header->name, file_header->mode);
7 - if ((res == -1) && (errno != EISDIR)
8 + if ((res == -1) && (errno != EISDIR) && (errno != EEXIST)
9 && !(archive_handle->flags & ARCHIVE_EXTRACT_QUIET)
10 ) {
11 bb_perror_msg("cannot make dir %s", file_header->name);