Merge pull request #998 from vbatts/tar_nosparse_flag

import: don't create sparse tar archives
This commit is contained in:
Lennart Poettering 2015-08-26 10:09:11 +02:00
commit 031fc5a1ac

View file

@ -210,7 +210,7 @@ int import_fork_tar_c(const char *path, pid_t *ret) {
if (r < 0)
log_error_errno(r, "Failed to drop capabilities, ignoring: %m");
execlp("tar", "tar", "--sparse", "-C", path, "-c", ".", NULL);
execlp("tar", "tar", "-C", path, "-c", ".", NULL);
log_error_errno(errno, "Failed to execute tar: %m");
_exit(EXIT_FAILURE);
}