Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

Location:
branches/samba-3.2.x/source/utils
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/net_conf.c

    r133 r233  
    550550        }
    551551
    552         if (getpwnam(sharename)) {
    553                 d_fprintf(stderr, "ERROR: share name %s is already a valid "
    554                           "system user name.\n", sharename);
    555                 goto done;
    556         }
    557 
    558552        if (strequal(sharename, GLOBAL_NAME)) {
    559553                d_fprintf(stderr,
  • branches/samba-3.2.x/source/utils/net_rpc.c

    r228 r233  
    46074607        int ret;
    46084608        bool r;
    4609         ENUM_HND hnd;
    46104609        uint32 i;
    46114610        FILE *f;
     
    46444643        for (i=0; i<num_tokens; i++)
    46454644                collect_alias_memberships(&tokens[i].token);
    4646 
    4647         init_enum_hnd(&hnd, 0);
    46484645
    46494646        share_list.num_shares = 0;
  • branches/samba-3.2.x/source/utils/net_rpc_join.c

    r232 r233  
    482482int net_rpc_testjoin(int argc, const char **argv)
    483483{
    484         char *domain = smb_xstrdup(opt_target_workgroup);
    485484        NTSTATUS nt_status;
    486485
    487486        /* Display success or failure */
    488         nt_status = net_rpc_join_ok(domain, NULL, NULL);
     487        nt_status = net_rpc_join_ok(opt_target_workgroup, NULL, NULL);
    489488        if (!NT_STATUS_IS_OK(nt_status)) {
    490489                fprintf(stderr,"Join to domain '%s' is not valid: %s\n",
    491                         domain, nt_errstr(nt_status));
    492                 free(domain);
     490                        opt_target_workgroup, nt_errstr(nt_status));
    493491                return -1;
    494492        }
    495493
    496         printf("Join to '%s' is OK\n",domain);
    497         free(domain);
     494        printf("Join to '%s' is OK\n",opt_target_workgroup);
    498495        return 0;
    499496}
  • branches/samba-3.2.x/source/utils/net_rpc_samsync.c

    r228 r233  
    22542254                } /* end of for loop */
    22552255
    2256                 /* Increment sync_context */
    2257                 sync_context += 1;
    2258 
    22592256        } while (NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES));
    22602257
  • branches/samba-3.2.x/source/utils/ntlm_auth.c

    r228 r233  
    524524        static const char zeros[16] = { 0, };
    525525        NTSTATUS nt_status;
    526         char *error_string;
     526        char *error_string = NULL;
    527527        uint8 lm_key[8];
    528528        uint8 user_sess_key[16];
    529         char *unix_name;
     529        char *unix_name = NULL;
    530530
    531531        nt_status = contact_winbind_auth_crap(ntlmssp_state->user, ntlmssp_state->domain,
     
    549549                }
    550550                ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state->mem_ctx, unix_name);
    551                 SAFE_FREE(unix_name);
    552551        } else {
    553552                DEBUG(NT_STATUS_EQUAL(nt_status, NT_STATUS_ACCESS_DENIED) ? 0 : 3,
     
    558557                ntlmssp_state->auth_context = NULL;
    559558        }
     559
     560        SAFE_FREE(error_string);
     561        SAFE_FREE(unix_name);
    560562        return nt_status;
    561563}
     
    18151817                                x_fprintf(x_stdout, "Authenticated: No\n");
    18161818                                x_fprintf(x_stdout, "Authentication-Error: %s\n.\n", error_string);
    1817                                 SAFE_FREE(error_string);
    18181819                        } else {
    18191820                                static char zeros[16];
     
    18431844                                }
    18441845                        }
     1846                        SAFE_FREE(error_string);
    18451847                }
    18461848                /* clear out the state */
Note: See TracChangeset for help on using the changeset viewer.