diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/lash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c index 96c0b3007..4067bc6bc 100644 --- a/shell/lash.c +++ b/shell/lash.c | |||
@@ -426,7 +426,7 @@ static int builtin_source(struct child_prog *child) | |||
426 | FILE *input; | 426 | FILE *input; |
427 | int status; | 427 | int status; |
428 | 428 | ||
429 | input = bb_wfopen(child->argv[1], "r"); | 429 | input = fopen_or_warn(child->argv[1], "r"); |
430 | if (!input) { | 430 | if (!input) { |
431 | return EXIT_FAILURE; | 431 | return EXIT_FAILURE; |
432 | } | 432 | } |
@@ -1522,7 +1522,7 @@ int lash_main(int argc_l, char **argv_l) | |||
1522 | llist_add_to(&close_me_list, (void *)(long)fileno(prof_input)); | 1522 | llist_add_to(&close_me_list, (void *)(long)fileno(prof_input)); |
1523 | /* Now run the file */ | 1523 | /* Now run the file */ |
1524 | busy_loop(prof_input); | 1524 | busy_loop(prof_input); |
1525 | bb_fclose_nonstdin(prof_input); | 1525 | fclose_if_not_stdin(prof_input); |
1526 | llist_pop(&close_me_list); | 1526 | llist_pop(&close_me_list); |
1527 | } | 1527 | } |
1528 | } | 1528 | } |