summaryrefslogtreecommitdiff
path: root/src/import
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 13:52:49 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-13 13:55:15 +0100
commit6da023a048c7456c2ca849d9437a88817a1189d6 (patch)
treeff1548f46a7b9df7266e23c9ccb47396a0b8b100 /src/import
parent6d0b55c272ea31d025e8b3c311cea8cda0bfefd7 (diff)
import: make sure we don't mangle file ownerships with the local passwd database when untarring
Diffstat (limited to 'src/import')
-rw-r--r--src/import/import-dkr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/import/import-dkr.c b/src/import/import-dkr.c
index a3f390ca8..b54a1a6d9 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);
}