From 9252df53d95d6ebe43314ffd87a9dda940b1ae10 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 12 Feb 2010 23:18:53 -0800 Subject: Use sec_initial_uid() in the places where being root doesn't matter, and 0 in the places where it does. Jeremy --- source3/lib/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/debug.c') diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 80b8310ab2..83211dd5e6 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -738,7 +738,7 @@ void check_log_size( void ) * loop check do a new check as root. */ - if( geteuid() != 0 ) + if( geteuid() != sec_initial_uid() ) return; if(log_overflow || !need_to_check_log_size() ) -- cgit