From e3994c1273ce49cb4fc4d5f9ea50e271e944037e Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Mon, 23 Mar 2015 20:42:47 +0000 Subject: [PATCH] Fixed like Maciej did. git-svn-id: file:///svn/unbound/trunk@3376 be551aaa-1e26-0410-a405-d3ace91eadb9 --- util/config_file.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.47.2