* spawn.cc (find_exec): Return input if file not found.
This commit is contained in:
parent
e7ac2b2299
commit
45d2ea8a52
|
@ -1,3 +1,7 @@
|
||||||
|
2002-03-21 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* spawn.cc (find_exec): Return input if file not found.
|
||||||
|
|
||||||
2002-03-19 Boris Schaeling <boriss@web.de>
|
2002-03-19 Boris Schaeling <boriss@web.de>
|
||||||
|
|
||||||
* poll.cc (poll): Add support for invalid descriptors.
|
* poll.cc (poll): Add support for invalid descriptors.
|
||||||
|
|
|
@ -89,7 +89,7 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv,
|
||||||
{
|
{
|
||||||
const char *suffix = "";
|
const char *suffix = "";
|
||||||
debug_printf ("find_exec (%s)", name);
|
debug_printf ("find_exec (%s)", name);
|
||||||
char *retval = buf;
|
const char *retval = buf;
|
||||||
char tmp[MAX_PATH];
|
char tmp[MAX_PATH];
|
||||||
const char *posix = (opt & FE_NATIVE) ? NULL : name;
|
const char *posix = (opt & FE_NATIVE) ? NULL : name;
|
||||||
bool has_slash = strchr (name, '/');
|
bool has_slash = strchr (name, '/');
|
||||||
|
@ -166,6 +166,8 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv,
|
||||||
retval = NULL;
|
retval = NULL;
|
||||||
else if (opt & FE_NATIVE)
|
else if (opt & FE_NATIVE)
|
||||||
buf.check (name);
|
buf.check (name);
|
||||||
|
else
|
||||||
|
retval = name;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (posix)
|
if (posix)
|
||||||
|
|
Loading…
Reference in New Issue