mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
If statements to getresuid() and getresgid() in setuid.c shouldn't have an extra space
This commit is contained in:
parent
fadd292bf0
commit
96a15bece7
@ -64,7 +64,7 @@ log_credential_status(void)
|
|||||||
|
|
||||||
/* log UIDs */
|
/* log UIDs */
|
||||||
#ifdef HAVE_GETRESUID
|
#ifdef HAVE_GETRESUID
|
||||||
if (getresuid(&ruid, &euid, &suid) != 0 ) {
|
if (getresuid(&ruid, &euid, &suid) != 0) {
|
||||||
log_warn(LD_GENERAL, "Error getting changed UIDs: %s", strerror(errno));
|
log_warn(LD_GENERAL, "Error getting changed UIDs: %s", strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
@ -85,7 +85,7 @@ log_credential_status(void)
|
|||||||
|
|
||||||
/* log GIDs */
|
/* log GIDs */
|
||||||
#ifdef HAVE_GETRESGID
|
#ifdef HAVE_GETRESGID
|
||||||
if (getresgid(&rgid, &egid, &sgid) != 0 ) {
|
if (getresgid(&rgid, &egid, &sgid) != 0) {
|
||||||
log_warn(LD_GENERAL, "Error getting changed GIDs: %s", strerror(errno));
|
log_warn(LD_GENERAL, "Error getting changed GIDs: %s", strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user