Changed declaration position in the source
This commit is contained in:
parent
2740857e5c
commit
7ee59c275a
@ -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;
|
||||
|
Reference in New Issue
Block a user