Do not diagnose same xattr file twice

* src/extract.c (set_xattr): Simplify, by having it do only
the mknodat and xattrs_xattrs_set, rather than also
trying to recover from failure.  Caller simplified too.
* tests/xattr07.at (xattrs: xattrs and --skip-old-files):
Adjust test to match fixed behavior.
This commit is contained in:
Paul Eggert
2022-08-26 16:38:29 -05:00
parent 0b74885e81
commit 35d9845d5d
2 changed files with 17 additions and 44 deletions

View File

@@ -62,8 +62,6 @@ user.test="OurFileValue2"
user.test="OurFileValue2"
], [tar: dir: skipping existing file
tar: dir/file: skipping existing file
tar: dir/file: skipping existing file
tar: dir/file2: skipping existing file
tar: dir/file2: skipping existing file
tar: dir/file: Cannot open: File exists
tar: dir/file2: Cannot open: File exists