[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 1/2] ash: report reason when a script file could not be opened
From: Johannes Schindelin <johannes.schindelin () gmx ! de>
Date: 2017-08-22 20:03:17
Message-ID: c6bec35caf2ccef57911ddd910cabd81ba066697.1503432178.git.johannes.schindelin () gmx ! de
[Download RAW message or body]
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>
---
shell/ash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.14.1.windows.1.11.gc06fee21d46.dirty
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic