diff options
Diffstat (limited to 'libbb/dump.c')
-rw-r--r-- | libbb/dump.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 7a87219ba..4db3f06f0 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * Copyright (c) 1989 | 6 | * Copyright (c) 1989 |
7 | * The Regents of the University of California. All rights reserved. | 7 | * The Regents of the University of California. All rights reserved. |
8 | * | 8 | * |
9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
10 | * | 10 | * |
11 | * Original copyright notice is retained at the end of this file. | 11 | * Original copyright notice is retained at the end of this file. |
12 | */ | 12 | */ |
@@ -323,9 +323,7 @@ static void do_skip(priv_dumper_t *dumper, const char *fname, int statok) | |||
323 | struct stat sbuf; | 323 | struct stat sbuf; |
324 | 324 | ||
325 | if (statok) { | 325 | if (statok) { |
326 | if (fstat(STDIN_FILENO, &sbuf)) { | 326 | xfstat(STDIN_FILENO, &sbuf, fname); |
327 | bb_simple_perror_msg_and_die(fname); | ||
328 | } | ||
329 | if (!(S_ISCHR(sbuf.st_mode) || S_ISBLK(sbuf.st_mode) || S_ISFIFO(sbuf.st_mode)) | 327 | if (!(S_ISCHR(sbuf.st_mode) || S_ISBLK(sbuf.st_mode) || S_ISFIFO(sbuf.st_mode)) |
330 | && dumper->pub.dump_skip >= sbuf.st_size | 328 | && dumper->pub.dump_skip >= sbuf.st_size |
331 | ) { | 329 | ) { |