diff options
Diffstat (limited to 'meta/recipes-support/attr/attr-2.4.44/thinko-in-restore.patch')
-rw-r--r-- | meta/recipes-support/attr/attr-2.4.44/thinko-in-restore.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-support/attr/attr-2.4.44/thinko-in-restore.patch b/meta/recipes-support/attr/attr-2.4.44/thinko-in-restore.patch new file mode 100644 index 0000000000..a84de94ed0 --- /dev/null +++ b/meta/recipes-support/attr/attr-2.4.44/thinko-in-restore.patch @@ -0,0 +1,19 @@ +commit e8d568c696692eed5c92d5a35498e1c26e13d6b3 +Author: Kamil Dudka <kdudka@redhat.com> +Date: Thu Jun 3 15:30:19 2010 +0200 + + setfattr.c: fix thinko in restore() + +diff --git a/setfattr/setfattr.c b/setfattr/setfattr.c +index 491c25a..0a14cfa 100644 +--- a/setfattr/setfattr.c ++++ b/setfattr/setfattr.c +@@ -120,7 +120,7 @@ int restore(const char *filename) + break; + line++; + if (strncmp(l, "# file: ", 8) != 0) { +- if (filename) { ++ if (file != stdin) { + fprintf(stderr, _("%s: %s: No filename found " + "in line %d, aborting\n"), + progname, filename, backup_line); |