mirror of
https://github.com/sheumann/hush.git
synced 2025-01-22 03:30:37 +00:00
Don't hose up perms for files that happen to have symlinks
in the tarball that point to them. -Erik
This commit is contained in:
parent
0933a92f5a
commit
67ff3a1ffd
@ -111,8 +111,10 @@ extern void data_extract_all(archive_handle_t *archive_handle)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
chown(file_header->name, file_header->uid, file_header->gid);
|
lchown(file_header->name, file_header->uid, file_header->gid);
|
||||||
chmod(file_header->name, file_header->mode);
|
if ((file_header->mode & S_IFMT) != S_IFLNK) {
|
||||||
|
chmod(file_header->name, file_header->mode);
|
||||||
|
}
|
||||||
|
|
||||||
if (archive_handle->flags & ARCHIVE_PRESERVE_DATE) {
|
if (archive_handle->flags & ARCHIVE_PRESERVE_DATE) {
|
||||||
struct utimbuf t;
|
struct utimbuf t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user