mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
added useful message for when closing due to incorrect uid.
This commit is contained in:
parent
be806088b3
commit
6f363db8f1
@ -186,6 +186,7 @@ int monitor_poll()
|
||||
if (ucred.uid&&(ucred.uid!=getuid())) {
|
||||
WHYF("monitor.socket client has wrong uid (%d versus %d)",
|
||||
ucred.uid,getuid());
|
||||
write(s,"CLOSE:Incorrect UID\n",strlen("CLOSE:Incorrect UID\n"));
|
||||
close(s); continue;
|
||||
}
|
||||
else if (monitor_socket_count>=MAX_MONITOR_SOCKETS) {
|
||||
|
Loading…
Reference in New Issue
Block a user