Do not try to set attributes and owners on already existing directories having the proper attributes and ownership already
modified libpkg/pkg_add.c
@@ -184,7 +184,7 @@ get_gid_from_archive(struct archive_entry *ae)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -193,7 +193,7 @@ set_attrs(int fd, char *path, mode_t perm, uid_t uid, gid_t gid,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -210,7 +210,7 @@ set_attrs(int fd, char *path, mode_t perm, uid_t uid, gid_t gid,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -240,6 +240,7 @@ do_extract_dir(struct pkg* pkg, struct archive *a __unused, struct archive_entry
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -259,6 +260,12 @@ do_extract_dir(struct pkg* pkg, struct archive *a __unused, struct archive_entry
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -295,7 +302,7 @@ do_extract_symlink(struct pkg *pkg, struct archive *a __unused, struct archive_e
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -409,7 +416,7 @@ do_extract_regfile(struct pkg *pkg, struct archive *a, struct archive_entry *ae,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -559,8 +566,10 @@ pkg_extract_finalize(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -357,6 +357,7 @@ struct pkg_dir {
|
|
|
|
|
|
| + | |
|
|
|
|
|