diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-26 06:47:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-26 06:47:08 +0000 |
commit | 7871ad911673ae9387e152103e00ea37b7b666f9 (patch) | |
tree | 185101df85555e8278fbbbd155dad0f4e54ac3fb /src/common/compat.c | |
parent | 6652d821b277f78098855b130b4b2475efb25567 (diff) | |
download | tor-7871ad911673ae9387e152103e00ea37b7b666f9.tar.gz tor-7871ad911673ae9387e152103e00ea37b7b666f9.zip |
failing in a support function is a warn, not an err.
svn:r6239
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 0572ad265a..3a05c32d45 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -513,7 +513,7 @@ switch_id(char *user, char *group) if (user) { pw = getpwnam(user); if (pw == NULL) { - log_err(LD_CONFIG,"User '%s' not found.", user); + log_warn(LD_CONFIG,"User '%s' not found.", user); return -1; } } @@ -522,17 +522,17 @@ switch_id(char *user, char *group) if (group) { gr = getgrnam(group); if (gr == NULL) { - log_err(LD_CONFIG,"Group '%s' not found.", group); + log_warn(LD_CONFIG,"Group '%s' not found.", group); return -1; } if (setgid(gr->gr_gid) != 0) { - log_err(LD_GENERAL,"Error setting GID: %s", strerror(errno)); + log_warn(LD_GENERAL,"Error setting GID: %s", strerror(errno)); return -1; } } else if (user) { if (setgid(pw->pw_gid) != 0) { - log_err(LD_GENERAL,"Error setting GID: %s", strerror(errno)); + log_warn(LD_GENERAL,"Error setting GID: %s", strerror(errno)); return -1; } } @@ -541,7 +541,7 @@ switch_id(char *user, char *group) privileges */ if (user) { if (setuid(pw->pw_uid) != 0) { - log_err(LD_GENERAL,"Error setting UID: %s", strerror(errno)); + log_warn(LD_GENERAL,"Error setting UID: %s", strerror(errno)); return -1; } } @@ -549,8 +549,8 @@ switch_id(char *user, char *group) return 0; #endif - log_err(LD_CONFIG, - "User or group specified, but switching users is not supported."); + log_warn(LD_CONFIG, + "User or group specified, but switching users is not supported."); return -1; } |