diff options
Diffstat (limited to 'util/config_file.c')
-rw-r--r-- | util/config_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/config_file.c b/util/config_file.c index 5c4e897da373..9c427ed0d4f5 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -1211,10 +1211,10 @@ 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); - cfg_uid = pwd->pw_uid; - cfg_gid = pwd->pw_gid; + if((pwd = getpwnam(cfg->username)) != NULL) { + cfg_uid = pwd->pw_uid; + cfg_gid = pwd->pw_gid; + } } #else (void)cfg; |