mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 00:31:16 +00:00
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>
This commit is contained in:
parent
ecc2a2e015
commit
b9762922d1
@ -132,7 +132,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
|
|||||||
#endif
|
#endif
|
||||||
lchown(file_header->name, file_header->uid, file_header->gid);
|
lchown(file_header->name, file_header->uid, file_header->gid);
|
||||||
}
|
}
|
||||||
if (S_ISLNK(file_header->mode)) {
|
if (!S_ISLNK(file_header->mode)) {
|
||||||
/* uclibc has no lchmod, glibc is even stranger -
|
/* uclibc has no lchmod, glibc is even stranger -
|
||||||
* it has lchmod which seems to do nothing!
|
* it has lchmod which seems to do nothing!
|
||||||
* so we use chmod... */
|
* so we use chmod... */
|
||||||
|
Loading…
Reference in New Issue
Block a user