From: Wouter Wijngaards Date: Mon, 23 Mar 2015 20:42:47 +0000 (+0000) Subject: Fixed like Maciej did. X-Git-Tag: release-1.5.4~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3994c1273ce49cb4fc4d5f9ea50e271e944037e;p=thirdparty%2Funbound.git Fixed like Maciej did. git-svn-id: file:///svn/unbound/trunk@3376 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/config_file.c b/util/config_file.c index 45a48880a..052d99f10 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -1218,9 +1218,7 @@ void config_lookup_uid(struct config_file* cfg) /* translate username into uid and gid */ if(cfg->username && cfg->username[0]) { struct passwd *pwd; - if((pwd = getpwnam(cfg->username)) == NULL) - log_err("user '%s' does not exist.", cfg->username); - else { + if((pwd = getpwnam(cfg->username)) != NULL) { cfg_uid = pwd->pw_uid; cfg_gid = pwd->pw_gid; }