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/messages.c

    r22 r26  
    183183
    184184        if (euid != 0) {
    185                 become_root_uid_only();
     185                /* If we're not root become so to send the message. */
     186                save_re_uid();
     187                set_effective_uid(0);
    186188        }
    187189
     
    189191
    190192        if (euid != 0) {
    191                 unbecome_root_uid_only();
     193                /* Go back to who we were. */
     194                int saved_errno = errno;
     195                restore_re_uid_fromroot();
     196                errno = saved_errno;
    192197        }
    193198
Note: See TracChangeset for help on using the changeset viewer.