Do not preserve UIDs, permissions nor flags of package system files in
tar files. This fixes clean-up problems during package creation and does not affect the actual files to be included in the package. The fix submitted on the attributed PR was identical to the one obtained from NetBSD. PR: 17386 Reported by: Adrian Filipi-Martin <adrian@ubergeeks.com> Obtained from: NetBSD
This commit is contained in:
parent
f21f1ea486
commit
8d548e1f88
@ -414,9 +414,9 @@ copy_file(char *dir, char *fname, char *to)
|
||||
char cmd[FILENAME_MAX];
|
||||
|
||||
if (fname[0] == '/')
|
||||
snprintf(cmd, FILENAME_MAX, "cp -p -r %s %s", fname, to);
|
||||
snprintf(cmd, FILENAME_MAX, "cp -r %s %s", fname, to);
|
||||
else
|
||||
snprintf(cmd, FILENAME_MAX, "cp -p -r %s/%s %s", dir, fname, to);
|
||||
snprintf(cmd, FILENAME_MAX, "cp -r %s/%s %s", dir, fname, to);
|
||||
if (vsystem(cmd)) {
|
||||
cleanup(0);
|
||||
errx(2, "could not perform '%s'", cmd);
|
||||
|
Loading…
x
Reference in New Issue
Block a user