diff options
Diffstat (limited to 'Build/source/texk/web2c/lib/texmfmp.c')
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index b586444d4c0..8460479d292 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -527,24 +527,17 @@ runsystem (const char *cmd) /* Like runsystem(), the runpopen() function is called only when shellenabledp == 1. Unlike runsystem(), here we write errors to stderr, since we have nowhere better to use; and of course we return - a file handle (or NULL) instead of a status indicator. - - Also, we append "b" to IO_MODE on Windows. */ + a file handle (or NULL) instead of a status indicator. */ static FILE * -runpopen (char *cmd, const char *io_mode) +runpopen (char *cmd, const char *mode) { FILE *f = NULL; char *safecmd = NULL; char *cmdname = NULL; int allow; -#ifndef WIN32 - /* Use mode "r" or "w" for Posix. */ - char mode[] = "X"; -#else - /* Use mode "rb" or "wb" for Windows. */ - char mode[] = "Xb"; +#ifdef WIN32 char *pp; for (pp = cmd; *pp; pp++) { @@ -552,9 +545,6 @@ runpopen (char *cmd, const char *io_mode) } #endif - /* Replace 'X' by 'r' or 'w'. */ - mode[0] = *io_mode; - /* If restrictedshell == 0, any command is allowed. */ if (restrictedshell == 0) allow = 1; |