mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
Setgui(), Setuid() calls in xio-progcall.c were useless
This commit is contained in:
parent
25cef1c540
commit
de80e962a6
2 changed files with 2 additions and 10 deletions
2
CHANGES
2
CHANGES
|
@ -54,6 +54,8 @@ Corrections:
|
|||
handling of ancilliary messages, so it is able to analyze ICMP error
|
||||
packets (Linux only?)
|
||||
|
||||
Setgui(), Setuid() calls in xio-progcall.c were useless.
|
||||
|
||||
Testing:
|
||||
Prevent the TIMESTAMP tests from sporadically failing due do seconds
|
||||
overflow
|
||||
|
|
|
@ -417,9 +417,6 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
|||
}
|
||||
}
|
||||
if (!withfork || pid == 0) { /* child */
|
||||
uid_t user;
|
||||
gid_t group;
|
||||
|
||||
if (withfork) {
|
||||
/* The child should have default handling for SIGCHLD. */
|
||||
/* In particular, it's not defined whether ignoring SIGCHLD is inheritable. */
|
||||
|
@ -548,13 +545,6 @@ int _xioopen_foxec(int xioflags, /* XIO_RDONLY etc. */
|
|||
applyopts(-1, *copts, PH_LATE2);
|
||||
}
|
||||
_xioopen_setdelayeduser();
|
||||
/* set group before user - maybe you are not permitted afterwards */
|
||||
if (retropt_gidt(*copts, OPT_SETGID, &group) >= 0) {
|
||||
Setgid(group);
|
||||
}
|
||||
if (retropt_uidt(*copts, OPT_SETUID, &user) >= 0) {
|
||||
Setuid(user);
|
||||
}
|
||||
if (withstderr) {
|
||||
*duptostderr = fdo;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue