diff options
Diffstat (limited to 'bin/sh/miscbltin.c')
-rw-r--r-- | bin/sh/miscbltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 46d3950..5c5d154 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -171,7 +171,7 @@ readcmd(argc, argv) backslash = 0; STARTSTACKSTR(p); for (;;) { - if (read(0, &c, 1) != 1) { + if (read(STDIN_FILENO, &c, 1) != 1) { status = 1; break; } @@ -194,7 +194,7 @@ readcmd(argc, argv) } startword = 0; if (backslash && c == '\\') { - if (read(0, &c, 1) != 1) { + if (read(STDIN_FILENO, &c, 1) != 1) { status = 1; break; } |