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