From e8f26d27b0484f37ab923f326f71dc5c4649965a Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 3 Jun 2010 15:30:19 +0200 Subject: [PATCH 3/3] setfattr.c: fix thinko in restore() --- setfattr/setfattr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.6.6.1