I just noticed that upstream has fixed it:

commit 93c92ed1d826c6759bb83d2168ee818a05280f35
Author: Kamil Dudka <kdu...@redhat.com>
Date:   Wed Dec 22 14:13:27 2010 +0100

    getfattr: return non-zero exit code on failure

    reported by Jean-Pierre André at https://bugzilla.redhat.com/660619


index 9c3de32..40f8fb5 100644
--- a/getfattr/getfattr.c
+++ b/getfattr/getfattr.c
@@ -353,6 +353,7 @@ int do_print(const char *path, const struct stat
*stat, int walk_flags,
             void *unused)
 {
        int header_printed = 0;
+       int err = 0;

        if (walk_flags & WALK_TREE_FAILED) {
                fprintf(stderr, "%s: %s: %s\n", progname, xquote(path, "\n\r"),
@@ -361,13 +362,13 @@ int do_print(const char *path, const struct stat
*stat, int walk_flags,
        }

        if (opt_name)
-               print_attribute(path, opt_name, &header_printed);
+               err = print_attribute(path, opt_name, &header_printed);
        else
-               list_attributes(path, &header_printed);
+               err = list_attributes(path, &header_printed);

        if (header_printed)
                puts("");
-       return 0;
+       return err;
 }

 void help(void)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to