mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Don't rely on /bin/sh
Another Fedora UsrMove victim !
This commit is contained in:
parent
be130752b4
commit
2fec30b203
@ -211,11 +211,11 @@ test_find_program (void)
|
||||
gchar *res;
|
||||
|
||||
res = g_find_program_in_path ("sh");
|
||||
g_assert_cmpstr (res, ==, "/bin/sh");
|
||||
g_assert (res != NULL);
|
||||
g_free (res);
|
||||
|
||||
res = g_find_program_in_path ("/bin/sh");
|
||||
g_assert_cmpstr (res, ==, "/bin/sh");
|
||||
g_assert (res != NULL);
|
||||
g_free (res);
|
||||
|
||||
res = g_find_program_in_path ("this_program_does_not_exit");
|
||||
|
Loading…
x
Reference in New Issue
Block a user