Changed declaration position in the source

This commit is contained in:
Michiel Broek 2004-09-13 18:20:13 +00:00
parent 2740857e5c
commit 7ee59c275a

View File

@ -314,7 +314,8 @@ int exec_nosuid(char *mandato)
{ {
int rc, status; int rc, status;
pid_t pid; pid_t pid;
char *argv[4];
if (mandato == NULL) if (mandato == NULL)
return 1; /* Prevent running a shell */ return 1; /* Prevent running a shell */
@ -324,7 +325,6 @@ int exec_nosuid(char *mandato)
return 1; return 1;
if (pid == 0) { if (pid == 0) {
msleep(150); msleep(150);
char *argv[4];
argv[0] = (char *)"sh"; argv[0] = (char *)"sh";
argv[1] = (char *)"-c"; argv[1] = (char *)"-c";
argv[2] = mandato; argv[2] = mandato;