[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] If statements to getresuid() and getresgid() in setuid.c shouldn't have an extra space
commit 96a15bece71f79269938c45bac6510ff6fb667d5
Author: Neel Chauhan <neel@xxxxxxxxx>
Date: Tue Nov 26 21:58:31 2019 -0500
If statements to getresuid() and getresgid() in setuid.c shouldn't have an extra space
---
src/lib/process/setuid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/process/setuid.c b/src/lib/process/setuid.c
index 3c94ce4ba..6cbdd99bb 100644
--- a/src/lib/process/setuid.c
+++ b/src/lib/process/setuid.c
@@ -64,7 +64,7 @@ log_credential_status(void)
/* log UIDs */
#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));
return -1;
} else {
@@ -85,7 +85,7 @@ log_credential_status(void)
/* log GIDs */
#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));
return -1;
} else {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits