Don't hardcode path to true(1).
authorAntoine Jacoutot <ajacoutot@openbsd.org>
Fri, 27 May 2011 15:39:38 +0000 (17:39 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2011 16:00:41 +0000 (12:00 -0400)
true(1) is not always installed under /bin so leave system() find
it in the PATH.

https://bugzilla.gnome.org/show_bug.cgi?id=651219

tests/child-test.c

index b678572..a6e307d 100644 (file)
@@ -175,7 +175,7 @@ main (int argc, char *argv[])
 #ifdef G_OS_WIN32
   system ("ipconfig /all");
 #else
-  system ("/bin/true");
+  system ("true");
 #endif
 
   alive = 2;