diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-30 01:10:17 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-30 01:18:34 +0200 |
commit | b9762922d1c5ab4022f35033c5efaa013dd2fdbf (patch) | |
tree | 3bce8323407846b1460d16aef757da3e3e3912c0 | |
parent | ecc2a2e015628d40d8ff55f4d68ad4dbcd6f854c (diff) | |
download | busybox-w32-b9762922d1c5ab4022f35033c5efaa013dd2fdbf.tar.gz busybox-w32-b9762922d1c5ab4022f35033c5efaa013dd2fdbf.tar.bz2 busybox-w32-b9762922d1c5ab4022f35033c5efaa013dd2fdbf.zip |
libunarchive: fix a bug where mode and time is no longer restored
Introduced by me in 1.15.x. Found by Rob Landley.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libunarchive/data_extract_all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c index 123d1de74..d79ef7cb9 100644 --- a/archival/libunarchive/data_extract_all.c +++ b/archival/libunarchive/data_extract_all.c | |||
@@ -132,7 +132,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle) | |||
132 | #endif | 132 | #endif |
133 | lchown(file_header->name, file_header->uid, file_header->gid); | 133 | lchown(file_header->name, file_header->uid, file_header->gid); |
134 | } | 134 | } |
135 | if (S_ISLNK(file_header->mode)) { | 135 | if (!S_ISLNK(file_header->mode)) { |
136 | /* uclibc has no lchmod, glibc is even stranger - | 136 | /* uclibc has no lchmod, glibc is even stranger - |
137 | * it has lchmod which seems to do nothing! | 137 | * it has lchmod which seems to do nothing! |
138 | * so we use chmod... */ | 138 | * so we use chmod... */ |