summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index 7e3c031..1a78816 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -505,7 +505,7 @@ int reload_config_file (const char *config_fname, struct config_s *conf)
goto done;
}
- if (!conf->user) {
+ if (!conf->user && !geteuid()) {
log_message (LOG_WARNING, "You SHOULD set a UserName in the "
"config file. Using current user instead.");
}