GNOME Bugzilla – Bug 674126
util_find_program_in_path() fails to find utilities in /sbin and /usr/sbin
Last modified: 2012-10-02 02:52:09 UTC
gnome-nettool tries to use some utilities which, at least in some distros, are installed in /sbin or /usr/sbin; for example, tracepath is installed in /usr/sbin on Gentoo. Since util_find_program_in_path(program, NULL) searches only in the user's path, which doesn't have /sbin and /usr/sbin in it by default, gnome-nettool fails to find them. A simple solution is to always append EXTRA_PATH (already defined in utils.c) to the user's path before searching.
Created attachment 212073 [details] [review] proposed patch
Review of attachment 212073 [details] [review]: It makes sense. Thanks.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.