[glib] Don't hardcode path to true(1).



commit 2ee470a71fdc3707cf4e093b22ab0f46ffab82e2
Author: Antoine Jacoutot <ajacoutot openbsd org>
Date:   Fri May 27 17:39:38 2011 +0200

    Don't hardcode path to true(1).
    
    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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/child-test.c b/tests/child-test.c
index b678572..a6e307d 100644
--- a/tests/child-test.c
+++ b/tests/child-test.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]