1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-26 03:51:32 +00:00

Drop setuid privilege correctly. (#401)

This commit is contained in:
Nick Briggs
2021-10-29 09:52:51 -07:00
committed by GitHub
parent c39b751f42
commit 19688bc314
3 changed files with 7 additions and 7 deletions

View File

@@ -214,7 +214,7 @@ int main(int argc, char *argv[]) {
ether_fd = -1;
/* exit(); */
}
seteuid(getuid());
setuid(getuid());
}
/* OK, right here do other stuff like scan args */