diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-04-24 21:06:38 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-04-24 21:06:54 -0700 |
commit | f678e47eb00daa3be5b00d6d9f167695be831981 (patch) | |
tree | f79c4a2317729e6c428eafc30a0e96d99d690c6d /src/xattrs.c | |
parent | f92cb1fe1655ff29a19e1c978303284c3b36159a (diff) | |
download | tar-f678e47eb00daa3be5b00d6d9f167695be831981.tar.gz |
tar: port to --without-xattrs --enable-gcc-warnings
Reported by Pavel Raiskup in
<http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00029.html>.
* src/xattrs.c (xattrs__fd_set) [!HAVE_XATTRS]: Omit.
Diffstat (limited to 'src/xattrs.c')
-rw-r--r-- | src/xattrs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xattrs.c b/src/xattrs.c index 4440b340..dac15f38 100644 --- a/src/xattrs.c +++ b/src/xattrs.c @@ -484,6 +484,7 @@ xattrs_xattrs_get (int parentfd, char const *file_name, } } +#ifdef HAVE_XATTRS static void xattrs__fd_set (struct tar_stat_info const *st, char const *file_name, char typeflag, @@ -509,6 +510,7 @@ xattrs__fd_set (struct tar_stat_info const *st, sysname, attr, file_name)); } } +#endif /* lgetfileconat is called against FILE_NAME iff the FD parameter is set to zero, otherwise the fgetfileconat is used against correct file descriptor */ |