From 7ee59c275a77fefd11b5a2cad4ba086ba5df9192 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 13 Sep 2004 18:20:13 +0000 Subject: [PATCH] Changed declaration position in the source --- mbsebbs/door.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbsebbs/door.c b/mbsebbs/door.c index d123cd7b..3a82bb32 100644 --- a/mbsebbs/door.c +++ b/mbsebbs/door.c @@ -314,7 +314,8 @@ int exec_nosuid(char *mandato) { int rc, status; pid_t pid; - + char *argv[4]; + if (mandato == NULL) return 1; /* Prevent running a shell */ @@ -324,7 +325,6 @@ int exec_nosuid(char *mandato) return 1; if (pid == 0) { msleep(150); - char *argv[4]; argv[0] = (char *)"sh"; argv[1] = (char *)"-c"; argv[2] = mandato;