mirror of https://git.48k.eu/ogserver
parent
139633a334
commit
5286c93d69
|
@ -986,7 +986,9 @@ static int og_set_client_mode(struct og_dbi *dbi, const char *mac,
|
||||||
if (fork() == 0) {
|
if (fork() == 0) {
|
||||||
execlp("/bin/bash", "/bin/bash",
|
execlp("/bin/bash", "/bin/bash",
|
||||||
"/opt/opengnsys/bin/setclientmode", filename, NULL);
|
"/opt/opengnsys/bin/setclientmode", filename, NULL);
|
||||||
_exit(1);
|
syslog(LOG_ERR, "failed script execution (%s:%d)\n",
|
||||||
|
__func__, __LINE__);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
} else {
|
} else {
|
||||||
wait(&status);
|
wait(&status);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue