mirror of
https://github.com/duplicati/duplicati.git
synced 2026-05-06 07:16:38 -04:00
Strip xattrs from tar
During building of the RPM packages we use a tar file. This update simply avoid bundling unused ACLs and XATTR values in the tar file.
This commit is contained in:
@@ -1402,7 +1402,7 @@ public static partial class Command
|
||||
// Create the tarball
|
||||
var tarfile = Path.Combine(tmpbuild, $"duplicati-{rtcfg.ReleaseInfo.Version}.tar.bz2");
|
||||
await ProcessHelper.Execute(
|
||||
["tar", "-cjf", tarfile, Path.GetFileName(tarsrc)],
|
||||
["tar", "--no-acls", "--no-xattrs", "-cjf", tarfile, Path.GetFileName(tarsrc)],
|
||||
workingDirectory: Path.GetDirectoryName(tarsrc)
|
||||
);
|
||||
Directory.Delete(tarsrc, true);
|
||||
|
||||
Reference in New Issue
Block a user