Ignore:
Timestamp:
Apr 10, 2007, 5:27:38 AM (14 years ago)
Author:
Paul Smedley
Message:

Updated source to 3.0.25rc1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/lib/util_sec.c

    r1 r26  
    270270****************************************************************************/
    271271
    272 static void restore_re_uid_fromroot(void)
     272void restore_re_uid_fromroot(void)
    273273{
    274274#if USE_SETRESUID
     
    294294        set_effective_uid(0);
    295295        restore_re_uid_fromroot();
    296 }
    297 
    298 /****************************************************************************
    299  Lightweight become root - no group change.
    300 ****************************************************************************/
    301 
    302 void become_root_uid_only(void)
    303 {
    304         save_re_uid();
    305         set_effective_uid(0);
    306 }
    307 
    308 /****************************************************************************
    309  Lightweight unbecome root - no group change. Expects we are root already,
    310  saves errno across call boundary.
    311 ****************************************************************************/
    312 
    313 void unbecome_root_uid_only(void)
    314 {
    315         int saved_errno = errno;
    316         restore_re_uid_fromroot();
    317         errno = saved_errno;
    318296}
    319297
Note: See TracChangeset for help on using the changeset viewer.