texecvp() is a bit dodgy from a setgid executable (even though we should have d… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d7ad3c0ccecb61c42151ca90db9102ef8076df0d | |
parent e7c8451a83660ef5f209f7c457b96092eff5c629 | |
Author: Ben Webb <[email protected]> | |
Date: Fri, 15 Feb 2002 17:37:18 +0000 | |
execvp() is a bit dodgy from a setgid executable (even though we should have | |
dropped privileges by this point). Replaced with execv() instead. | |
Diffstat: | |
M src/gtkport.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/gtkport.c b/src/gtkport.c | |
t@@ -4896,7 +4896,7 @@ static gboolean gtk_url_triggered(GtkWidget *widget, Gdk… | |
args[2] = NULL; | |
pid = fork(); | |
if (pid == 0) { | |
- execvp(bin, args); | |
+ execv(bin, args); | |
g_print("dopewars: cannot execute %s\n", bin); | |
_exit(1); | |
} |