diff options
Diffstat (limited to 'commands/cat.c')
-rw-r--r-- | commands/cat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/cat.c b/commands/cat.c index d6f9b7a6f9..da34996b54 100644 --- a/commands/cat.c +++ b/commands/cat.c @@ -57,6 +57,7 @@ static int do_cat(cmd_tbl_t *cmdtp, int argc, char *argv[]) while (args < argc) { fd = open(argv[args], O_RDONLY); if (fd < 0) { + err = 1; printf("could not open %s: %s\n", argv[args], errno_str()); goto out; } |