Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/passdb/pdb_ldap.c

    r206 r221  
    12501250                        pdb_get_profile_path(sampass));
    12511251
    1252         if (asprintf(&temp, "%li", pdb_get_logon_time(sampass)) < 0) {
     1252        if (asprintf(&temp, "%li", (long int)pdb_get_logon_time(sampass)) < 0) {
    12531253                return false;
    12541254        }
     
    12581258        SAFE_FREE(temp);
    12591259
    1260         if (asprintf(&temp, "%li", pdb_get_logoff_time(sampass)) < 0) {
     1260        if (asprintf(&temp, "%li", (long int)pdb_get_logoff_time(sampass)) < 0) {
    12611261                return false;
    12621262        }
     
    12661266        SAFE_FREE(temp);
    12671267
    1268         if (asprintf(&temp, "%li", pdb_get_kickoff_time(sampass)) < 0) {
     1268        if (asprintf(&temp, "%li", (long int)pdb_get_kickoff_time(sampass)) < 0) {
    12691269                return false;
    12701270        }
     
    12741274        SAFE_FREE(temp);
    12751275
    1276         if (asprintf(&temp, "%li", pdb_get_pass_can_change_time_noncalc(sampass)) < 0) {
     1276        if (asprintf(&temp, "%li", (long int)pdb_get_pass_can_change_time_noncalc(sampass)) < 0) {
    12771277                return false;
    12781278        }
     
    12821282        SAFE_FREE(temp);
    12831283
    1284         if (asprintf(&temp, "%li", pdb_get_pass_must_change_time(sampass)) < 0) {
     1284        if (asprintf(&temp, "%li", (long int)pdb_get_pass_must_change_time(sampass)) < 0) {
    12851285                return false;
    12861286        }
     
    13621362                if (need_update(sampass, PDB_PASSLASTSET)) {
    13631363                        if (asprintf(&temp, "%li",
    1364                                 pdb_get_pass_last_set_time(sampass)) < 0) {
     1364                                (long int)pdb_get_pass_last_set_time(sampass)) < 0) {
    13651365                                return false;
    13661366                        }
     
    14241424                        SAFE_FREE(temp);
    14251425
    1426                         if (asprintf(&temp, "%li", badtime) < 0) {
     1426                        if (asprintf(&temp, "%li", (long int)badtime) < 0) {
    14271427                                return false;
    14281428                        }
     
    59425942                         sid_string_tos(sid));
    59435943        smbldap_make_mod(priv2ld(ldap_state), entry, &mods, "sambaPwdLastSet",
    5944                          talloc_asprintf(talloc_tos(), "%li", time(NULL)));
     5944                         talloc_asprintf(talloc_tos(), "%li", (long int)time(NULL)));
    59455945        smbldap_make_mod(priv2ld(ldap_state), entry, &mods,
    59465946                         "sambaClearTextPassword", pwd);
Note: See TracChangeset for help on using the changeset viewer.