diff options
Diffstat (limited to 'shell/lash_unused.c')
-rw-r--r-- | shell/lash_unused.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/lash_unused.c b/shell/lash_unused.c index 708408954..90b1f56cf 100644 --- a/shell/lash_unused.c +++ b/shell/lash_unused.c | |||
@@ -1513,7 +1513,7 @@ int lash_main(int argc, char **argv) | |||
1513 | 1513 | ||
1514 | if (global_argv[0] && global_argv[0][0] == '-') { | 1514 | if (global_argv[0] && global_argv[0][0] == '-') { |
1515 | FILE *prof_input; | 1515 | FILE *prof_input; |
1516 | prof_input = fopen("/etc/profile", "r"); | 1516 | prof_input = fopen_for_read("/etc/profile"); |
1517 | if (prof_input) { | 1517 | if (prof_input) { |
1518 | llist_add_to(&close_me_list, (void *)(long)fileno(prof_input)); | 1518 | llist_add_to(&close_me_list, (void *)(long)fileno(prof_input)); |
1519 | /* Now run the file */ | 1519 | /* Now run the file */ |
@@ -1553,7 +1553,7 @@ int lash_main(int argc, char **argv) | |||
1553 | } | 1553 | } |
1554 | } else if (!local_pending_command && global_argv[optind]) { | 1554 | } else if (!local_pending_command && global_argv[optind]) { |
1555 | //printf( "optind=%d argv[optind]='%s'\n", optind, argv[optind]); | 1555 | //printf( "optind=%d argv[optind]='%s'\n", optind, argv[optind]); |
1556 | input = xfopen(global_argv[optind], "r"); | 1556 | input = xfopen_for_read(global_argv[optind]); |
1557 | /* be lazy, never mark this closed */ | 1557 | /* be lazy, never mark this closed */ |
1558 | llist_add_to(&close_me_list, (void *)(long)fileno(input)); | 1558 | llist_add_to(&close_me_list, (void *)(long)fileno(input)); |
1559 | } | 1559 | } |