From 6da023a048c7456c2ca849d9437a88817a1189d6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Jan 2015 13:52:49 +0100 Subject: import: make sure we don't mangle file ownerships with the local passwd database when untarring --- src/import/import-dkr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import/import-dkr.c') diff --git a/src/import/import-dkr.c b/src/import/import-dkr.c index a3f390ca82..b54a1a6d94 100644 --- a/src/import/import-dkr.c +++ b/src/import/import-dkr.c @@ -493,7 +493,7 @@ static int dkr_import_job_run_tar(DkrImportJob *job) { if (null_fd != STDOUT_FILENO) safe_close(null_fd); - execlp("tar", "tar", "-C", job->temp_path, gzip ? "-xz" : "-x", NULL); + execlp("tar", "tar", "-C", job->temp_path, gzip ? "-xpz" : "-px", "--numeric-owner", NULL); _exit(EXIT_FAILURE); } -- cgit v1.2.3-54-g00ecf