summaryrefslogtreecommitdiff
path: root/setfattr/setfattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'setfattr/setfattr.c')
-rw-r--r--setfattr/setfattr.c2
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);