aboutsummaryrefslogtreecommitdiff
path: root/shell/bbsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/bbsh.c')
-rw-r--r--shell/bbsh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/bbsh.c b/shell/bbsh.c
index 3be64eec7..897c0227c 100644
--- a/shell/bbsh.c
+++ b/shell/bbsh.c
@@ -206,7 +206,7 @@ int bbsh_main(int argc, char **argv)
206 206
207 getopt32(argv, "c:", &command); 207 getopt32(argv, "c:", &command);
208 208
209 f = argv[optind] ? xfopen(argv[optind],"r") : NULL; 209 f = argv[optind] ? xfopen_for_read(argv[optind]) : NULL;
210 if (command) handle(command); 210 if (command) handle(command);
211 else { 211 else {
212 unsigned cmdlen=0; 212 unsigned cmdlen=0;