Eric Blake 51fc56553f util: honor anchored names when searching for executables
I got bit in a debugging session on an uninstalled libvirtd; the
code tried to call out to the installed $LIBEXECDIR/libvirt_iohelper
instead of my just-built version.  So I set a breakpoint and altered
the binary name to be "./src/libvirt_iohelper", and it still failed
because I don't have "." on my PATH.

According to POSIX, execvp only searches PATH if the name does
not contain a slash.  Since we are trying to mimic that behavior,
an anchored name should be relative to the current working dir.

This tightens existing behavior, but most callers already pass
an absolute name or a name with no slashes, so it probably won't
be noticeable.

* src/util/util.c (virFindFileInPath): Anchored relative names do
not invoke a PATH search.
2011-07-13 07:30:42 -06:00
..
2011-06-24 16:01:56 -06:00
2011-05-05 13:48:19 -06:00
2011-07-04 10:28:27 +08:00
2011-07-07 13:12:44 -06:00
2010-09-23 10:37:10 +02:00
2011-06-13 11:24:58 +02:00
2011-05-11 12:41:14 -06:00
2011-06-22 17:13:58 -06:00
2011-05-09 14:02:13 +02:00
2011-05-24 12:34:43 -06:00
2011-02-11 12:32:17 -07:00
2011-07-05 11:42:38 -06:00
2011-07-05 11:42:38 -06:00
2011-01-03 14:45:00 -07:00
2011-06-08 05:28:20 -06:00