aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/lash.c')
-rw-r--r--shell/lash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 27eb8ec29..a20934834 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -228,7 +228,7 @@ static int builtin_cd(struct child_prog *child)
228 else 228 else
229 newdir = child->argv[1]; 229 newdir = child->argv[1];
230 if (chdir(newdir)) { 230 if (chdir(newdir)) {
231 printf("cd: %s: %m\n", newdir); 231 bb_perror_msg("cd: %s", newdir);
232 return EXIT_FAILURE; 232 return EXIT_FAILURE;
233 } 233 }
234 cwd = xgetcwd((char *)cwd); 234 cwd = xgetcwd((char *)cwd);
@@ -378,7 +378,7 @@ static int builtin_export(struct child_prog *child)
378 } 378 }
379 res = putenv(v); 379 res = putenv(v);
380 if (res) 380 if (res)
381 fprintf(stderr, "export: %m\n"); 381 bb_perror_msg("export");
382#ifdef CONFIG_FEATURE_SH_FANCY_PROMPT 382#ifdef CONFIG_FEATURE_SH_FANCY_PROMPT
383 if (strncmp(v, "PS1=", 4)==0) 383 if (strncmp(v, "PS1=", 4)==0)
384 PS1 = getenv("PS1"); 384 PS1 = getenv("PS1");
@@ -420,7 +420,7 @@ static int builtin_read(struct child_prog *child)
420 if((s = strdup(string))) 420 if((s = strdup(string)))
421 res = putenv(s); 421 res = putenv(s);
422 if (res) 422 if (res)
423 fprintf(stderr, "read: %m\n"); 423 bb_perror_msg("read");
424 } 424 }
425 else 425 else
426 fgets(string, sizeof(string), stdin); 426 fgets(string, sizeof(string), stdin);
@@ -1231,7 +1231,7 @@ static int pseudo_exec(struct child_prog *child)
1231 1231
1232 /* Do not use bb_perror_msg_and_die() here, since we must not 1232 /* Do not use bb_perror_msg_and_die() here, since we must not
1233 * call exit() but should call _exit() instead */ 1233 * call exit() but should call _exit() instead */
1234 fprintf(stderr, "%s: %m\n", child->argv[0]); 1234 bb_perror_msg("%s", child->argv[0]);
1235 _exit(EXIT_FAILURE); 1235 _exit(EXIT_FAILURE);
1236} 1236}
1237 1237