From aeb7b19c53b26bfcd85805737ed3c6263f634a7c Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 10 May 2021 00:02:35 +0100 Subject: conf: do not warn about missing user directive unless root there's no point in printing a warning if the program is already started as a restricted user. --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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."); } -- cgit v1.2.3