mirror of
https://github.com/clearlinux/swupd-probe.git
synced 2026-09-06 13:51:29 +00:00
Close fd after fork in the child.
This commit is contained in:
@@ -117,6 +117,8 @@ static void deliver_payload(const char *filename)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
close(fd);
|
||||
|
||||
/* drop privileges */
|
||||
if (setgroups(0, NULL)) {
|
||||
perror("setgroups");
|
||||
|
||||
Reference in New Issue
Block a user