diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-06-30 23:01:29 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-06-30 23:01:29 -0700 |
commit | b596ffa6159ddab85dcd182559775c1e84379dee (patch) | |
tree | 2df6e635aadcb0649d7d4a9b3a404878761d6cb8 /newlib/libc/stdlib/system.c | |
parent | 3f93f175787bf9ed7bd4902096d2bf8b67c44adc (diff) | |
download | cygnal-b596ffa6159ddab85dcd182559775c1e84379dee.tar.gz cygnal-b596ffa6159ddab85dcd182559775c1e84379dee.tar.bz2 cygnal-b596ffa6159ddab85dcd182559775c1e84379dee.zip |
Cygnal apps use cmd.exe, not /bin/sh.
* winsup/cygwin/include/paths.h (_PATH_CMDEXE): New
preprocessor symbol.
* winsup/cygwin/spawn.cc (av_setup): Use _PATH_CMDEXE
rather than "/bin/sh".
* winsup/cygwin/syscalls.cc (system): Spawn _PATH_CMDEXE
with /c option rather than /bin/sh.
(ETC_SHELLS): Preprocessor symbol removed.
(shell_fp): Global variable removed.
(getusershell): Don't open ETC_SHELLS, just march through
static array of shell names. That array contains only one
entry: _PATH_CMDEXE.
(setusershell, endusershell): Remove references to shell_fp.
(popen): Exec _PATH_CMDEXE rather than "/bin/sh", and the
option is /c.
Diffstat (limited to 'newlib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions