Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

Location:
branches/samba-3.2.x/source/auth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/auth/pampass.c

    r133 r228  
    6464 */
    6565#define COPY_STRING(s) (s) ? SMB_STRDUP(s) : NULL
     66#define COPY_FSTRING(s) (s[0]) ? SMB_STRDUP(s) : NULL
    6667
    6768/*******************************************************************
     
    328329#endif
    329330                                        reply[replies].resp_retcode = PAM_SUCCESS;
    330                                         reply[replies].resp = COPY_STRING(current_reply);
     331                                        reply[replies].resp = COPY_FSTRING(current_reply);
    331332                                        found = True;
    332333                                        break;
     
    356357                                        pwd_sub(current_reply, udp->PAM_username, udp->PAM_password, udp->PAM_newpassword);
    357358                                        reply[replies].resp_retcode = PAM_SUCCESS;
    358                                         reply[replies].resp = COPY_STRING(current_reply);
     359                                        reply[replies].resp = COPY_FSTRING(current_reply);
    359360#ifdef DEBUG_PASSWORD
    360361                                        DEBUG(100,("smb_pam_passchange_conv: PAM_PROMPT_ECHO_OFF: We actualy sent: %s\n", current_reply));
  • branches/samba-3.2.x/source/auth/token_util.c

    r136 r228  
    7878NT_USER_TOKEN *get_root_nt_token( void )
    7979{
    80         struct nt_user_token *token = NULL;
     80        struct nt_user_token *token, *for_cache;
    8181        DOM_SID u_sid, g_sid;
    8282        struct passwd *pw;
     
    108108        token->privileges = se_disk_operators;
    109109
     110        for_cache = token;
     111
    110112        memcache_add_talloc(
    111113                NULL, SINGLETON_CACHE_TALLOC,
    112                 data_blob_string_const("root_nt_token"), token);
     114                data_blob_string_const("root_nt_token"), &for_cache);
    113115
    114116        return token;
Note: See TracChangeset for help on using the changeset viewer.