+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>
* poll.cc (poll): Add support for invalid descriptors.
{
const char *suffix = "";
debug_printf ("find_exec (%s)", name);
- char *retval = buf;
+ const char *retval = buf;
char tmp[MAX_PATH];
const char *posix = (opt & FE_NATIVE) ? NULL : name;
bool has_slash = strchr (name, '/');
retval = NULL;
else if (opt & FE_NATIVE)
buf.check (name);
+ else
+ retval = name;
out:
if (posix)