aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 639f5396a..0d65a225b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -2957,7 +2957,7 @@ cdcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
2957 goto docd; 2957 goto docd;
2958 2958
2959 err: 2959 err:
2960 ash_msg_and_raise_error("can't cd to %s", dest); 2960 ash_msg_and_raise_perror("can't cd to %s", dest);
2961 /* NOTREACHED */ 2961 /* NOTREACHED */
2962 out: 2962 out:
2963 if (flags & CD_PRINT) 2963 if (flags & CD_PRINT)
@@ -5313,7 +5313,7 @@ forkchild(struct job *jp, union node *n, int mode)
5313 if (jp->nprocs == 0) { 5313 if (jp->nprocs == 0) {
5314 close(0); 5314 close(0);
5315 if (open(bb_dev_null, O_RDONLY) != 0) 5315 if (open(bb_dev_null, O_RDONLY) != 0)
5316 ash_msg_and_raise_error("can't open '%s'", bb_dev_null); 5316 ash_msg_and_raise_perror("can't open '%s'", bb_dev_null);
5317 } 5317 }
5318 } 5318 }
5319 if (oldlvl == 0) { 5319 if (oldlvl == 0) {
@@ -5414,7 +5414,7 @@ forkshell(struct job *jp, union node *n, int mode)
5414 TRACE(("Fork failed, errno=%d", errno)); 5414 TRACE(("Fork failed, errno=%d", errno));
5415 if (jp) 5415 if (jp)
5416 freejob(jp); 5416 freejob(jp);
5417 ash_msg_and_raise_error("can't fork"); 5417 ash_msg_and_raise_perror("can't fork");
5418 } 5418 }
5419 if (pid == 0) { 5419 if (pid == 0) {
5420 CLEAR_RANDOM_T(&random_gen); /* or else $RANDOM repeats in child */ 5420 CLEAR_RANDOM_T(&random_gen); /* or else $RANDOM repeats in child */
@@ -5559,7 +5559,7 @@ openhere(union node *redir)
5559 IF_PLATFORM_MINGW32(struct forkshell fs); 5559 IF_PLATFORM_MINGW32(struct forkshell fs);
5560 5560
5561 if (pipe(pip) < 0) 5561 if (pipe(pip) < 0)
5562 ash_msg_and_raise_error("pipe call failed"); 5562 ash_msg_and_raise_perror("can't create pipe");
5563 if (redir->type == NHERE) { 5563 if (redir->type == NHERE) {
5564 len = strlen(redir->nhere.doc->narg.text); 5564 len = strlen(redir->nhere.doc->narg.text);
5565 if (len <= PIPE_BUF) { 5565 if (len <= PIPE_BUF) {
@@ -6661,7 +6661,7 @@ evalbackcmd(union node *n, struct backcmd *result)
6661 } 6661 }
6662 6662
6663 if (pipe(pip) < 0) 6663 if (pipe(pip) < 0)
6664 ash_msg_and_raise_error("pipe call failed"); 6664 ash_msg_and_raise_perror("can't create pipe");
6665 jp = makejob(/*n,*/ 1); 6665 jp = makejob(/*n,*/ 1);
6666#if ENABLE_PLATFORM_MINGW32 6666#if ENABLE_PLATFORM_MINGW32
6667 result->fs.fpid = FS_EVALBACKCMD; 6667 result->fs.fpid = FS_EVALBACKCMD;
@@ -9625,7 +9625,7 @@ evalpipe(union node *n, int flags)
9625 if (lp->next) { 9625 if (lp->next) {
9626 if (pipe(pip) < 0) { 9626 if (pipe(pip) < 0) {
9627 close(prevfd); 9627 close(prevfd);
9628 ash_msg_and_raise_error("pipe call failed"); 9628 ash_msg_and_raise_perror("can't create pipe");
9629 } 9629 }
9630 } 9630 }
9631#if ENABLE_PLATFORM_MINGW32 9631#if ENABLE_PLATFORM_MINGW32
@@ -11058,7 +11058,7 @@ setinputfile(const char *fname, int flags)
11058 if (flags & INPUT_NOFILE_OK) 11058 if (flags & INPUT_NOFILE_OK)
11059 goto out; 11059 goto out;
11060 exitstatus = 127; 11060 exitstatus = 127;
11061 ash_msg_and_raise_error("can't open '%s'", fname); 11061 ash_msg_and_raise_perror("can't open '%s'", fname);
11062 } 11062 }
11063 if (fd < 10) 11063 if (fd < 10)
11064 fd = savefd(fd); 11064 fd = savefd(fd);