[tor-commits] [tor/master] Improve warning message

nickm at torproject.org nickm at torproject.org
Thu Dec 17 13:36:38 UTC 2015


commit 759e6f8afb19da6c6664d630f4695fc50cf62abc
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Wed Dec 16 23:11:38 2015 +0100

    Improve warning message
    
    The user parameter is not checked so we do not know the user has been
    specified.
---
 src/common/compat.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/common/compat.c b/src/common/compat.c
index 7e8eec1..0b8fcb7 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -2207,8 +2207,7 @@ switch_id(const char *user, const unsigned flags)
   (void)user;
   (void)flags;
 
-  log_warn(LD_CONFIG,
-           "User specified but switching users is unsupported on your OS.");
+  log_warn(LD_CONFIG, "Switching users is unsupported on your OS.");
   return -1;
 #endif
 }





More information about the tor-commits mailing list