mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 18:27:04 +03:00
import: make sure we don't mangle file ownerships with the local passwd database when untarring
This commit is contained in:
parent
6d0b55c272
commit
6da023a048
@ -493,7 +493,7 @@ static int dkr_import_job_run_tar(DkrImportJob *job) {
|
|||||||
if (null_fd != STDOUT_FILENO)
|
if (null_fd != STDOUT_FILENO)
|
||||||
safe_close(null_fd);
|
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);
|
_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user