aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-12-09 20:02:07 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-12-09 20:02:07 +0200
commit549694bc88a7345c10551d13017fa8a0eccb8619 (patch)
tree1da27840ad10ac0f1b048f74a240647dee7148da /builtin.c
parentd20af67ae8a6a573a0db906f9c9960a092f21b41 (diff)
downloadegawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.gz
egawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.bz2
egawk-549694bc88a7345c10551d13017fa8a0eccb8619.zip
Change BINMODE to use symbolic values.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index aed9dfe5..be99cbca 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1844,7 +1844,7 @@ do_system(int nargs)
ret = system(cmd);
if (ret != -1)
ret = WEXITSTATUS(ret);
- if ((BINMODE & 1) != 0)
+ if ((BINMODE & BINMODE_INPUT) != 0)
os_setbinmode(fileno(stdin), O_BINARY);
cmd[tmp->stlen] = save;