summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/logging.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2007-12-03 15:09:49 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2007-12-03 15:09:49 +0000
commite13a45b4924436ca148adef026b9720c372786a9 (patch)
treea1bcc5d921771603e1758c3699703839063ff965 /usr.bin/sudo/logging.c
parent1a3b3a6368a160285258f3e55f46e99aa22db27a (diff)
update to sudo 1.6.9p9
Diffstat (limited to 'usr.bin/sudo/logging.c')
-rw-r--r--usr.bin/sudo/logging.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/sudo/logging.c b/usr.bin/sudo/logging.c
index f6f5b14ee3d..b03a4020098 100644
--- a/usr.bin/sudo/logging.c
+++ b/usr.bin/sudo/logging.c
@@ -60,7 +60,7 @@
#include "sudo.h"
#ifndef lint
-__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.12 2007/08/08 20:07:45 millert Exp $";
+__unused static const char rcsid[] = "$Sudo: logging.c,v 1.168.2.13 2007/11/25 13:07:38 millert Exp $";
#endif /* lint */
static void do_syslog __P((int, char *));
@@ -370,9 +370,8 @@ log_error(flags, fmt, va_alist)
va_start(ap);
#endif
- /* Become root if we are not already to avoid user control */
- if (geteuid() != 0)
- set_perms(PERM_ROOT);
+ /* Become root if we are not already to avoid user interference */
+ set_perms(PERM_ROOT);
/* Expand printf-style format + args. */
evasprintf(&message, fmt, ap);