]> git.ipfire.org Git - thirdparty/tar.git/commit
Do not diagnose same xattr file twice
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Aug 2022 21:38:29 +0000 (16:38 -0500)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Aug 2022 21:39:16 +0000 (16:39 -0500)
commit35d9845d5d410237e418113ec79d8f9e4b0b2bb8
tree5a871617f2cd739753a83a7a9f039befb6aeb9d9
parent0b74885e81b90d6ab4890b195dce99ca9109fe59
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.
src/extract.c
tests/xattr07.at