diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-08-22 22:03:17 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-23 14:47:45 +0200 |
commit | 20a63b2c18e9e69b02090d49b4aec399f082fdaf (patch) | |
tree | c959e3003206d50199cb3feebecd66b464cac1be | |
parent | 6bafcfb67a30dde668cceeab7669082fbcf5a489 (diff) | |
download | busybox-20a63b2c18e9e69b02090d49b4aec399f082fdaf.tar.gz |
ash: report reason when a script file could not be opened
It is always nicer to give the user some sort of indication why an
operation failed.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c index 703802ff5..a67a45376 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -10575,7 +10575,7 @@ setinputfile(const char *fname, int flags) if (flags & INPUT_NOFILE_OK) goto out; exitstatus = 127; - ash_msg_and_raise_error("can't open '%s'", fname); + ash_msg_and_raise_perror("can't open '%s'", fname); } if (fd < 10) fd = savefd(fd); |