diff -Nrup glib-2.12.4/glib/gspawn.c ../SUNWgnome-base-libs-2.16.1-patch03/glib-2.12.4/glib/gspawn.c
--- glib-2.12.4/glib/gspawn.c 2006-09-30 16:21:38.000000000 +0200
+++ ../SUNWgnome-base-libs-2.16.1-patch03/glib-2.12.4/glib/gspawn.c 2006-10-12 09:38:16.091196000 +0200
@@ -1457,7 +1457,11 @@ g_execute (const gchar *file,
* what to search if PATH is unset. POSIX may, dunno.
*/
- path = "/bin:/usr/bin:.";
+#ifdef sun
+ path = "/usr/bin";
+#else
+ path = "/bin:/usr/bin";
+#endif
}
len = strlen (file) + 1;
diff -Nrup glib-2.13.1/glib/gutils.c ../SUNWgnome-base-libs-2.16.1-patch03/glib-2.13.1/glib/gutils.c
--- glib-2.13.1/glib/gutils.c 2006-07-06 22:30:16.000000000 +0200
+++ ../SUNWgnome-base-libs-2.16.1-patch03/glib-2.13.1/glib/gutils.c 2006-10-12 09:38:16.081238000 +0200
@@ -427,7 +427,11 @@
* what to search if PATH is unset. POSIX may, dunno.
*/
+#ifdef sun
+ path = "/usr/bin:.";
+#else
path = "/bin:/usr/bin:.";
+#endif
}
#else
n = GetModuleFileNameW (NULL, wfilename, MAXPATHLEN);