diff options
author | Jeremy Allison <jra@samba.org> | 2007-04-05 23:56:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:11 -0500 |
commit | bc45c82904e268327bfbf72cd3f35699ae6e7397 (patch) | |
tree | 1ff4f7e3d1befc81659a01f1dedf72756ff020a6 /source3/lib/debug.c | |
parent | 90dc2613153bb8c865a1cfda0318ae4db3cf212e (diff) | |
download | samba-bc45c82904e268327bfbf72cd3f35699ae6e7397.tar.gz |
r22096: become_root_uid_only() is unneeded - it's only used in
messages.c. Refactor to use become_root() instead and
make it local to messages.c
Jeremy.
(This used to be commit f3ffb3f98472b69b476b702dfe5c0575b32da018)
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r-- | source3/lib/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index a2e8574bbdd..138c52cdcea 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -695,7 +695,7 @@ void check_log_size( void ) if( sys_fstat( x_fileno( dbf ), &st ) == 0 && st.st_size > maxlog ) { - become_root_uid_only(); + become_root(); (void)reopen_logs(); if( dbf && get_file_size( debugf ) > maxlog ) { @@ -710,7 +710,7 @@ void check_log_size( void ) } } - unbecome_root_uid_only(); + unbecome_root(); } /* |