1 # Process this file with autom4te to create testsuite. -*- Autotest -*-
3 # Test suite for GNU tar.
4 # Copyright (C) 2012 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # Test description: Test for the regression caused by tar update from 1.23 to
20 # 1.26, Red Hat xattr patch was not ready for open->openat conversion.
22 # Related commit 4bde4f3. See the bug: https://bugzilla.redhat.com/717684
24 AT_SETUP([xattrs: s/open/openat/ regression])
25 AT_KEYWORDS([xattrs xattr04])
32 genfile --file dir/file
34 setfattr -n user.test -v value dir/file
36 # archive whole directory including binary xattrs
37 tar --xattrs -cf archive.tar -C dir .
39 tar --xattrs -xf archive.tar -C output
41 getfattr -h -d output/file | grep -v -e '^#' -e ^$