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

Update Samba 3.3 branch to 3.3.4

File:
1 edited

Legend:

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

    r223 r224  
    301301                        goto done;
    302302                case 2:
    303                         servicename = talloc_strdup_lower(mem_ctx, argv[1]);
     303                        servicename = talloc_strdup(mem_ctx, argv[1]);
    304304                        if (servicename == NULL) {
    305305                                d_printf("error: out of memory!\n");
     
    341341                        goto cancel;
    342342                }
     343
     344                werr = smbconf_transaction_start(conf_ctx);
     345                if (!W_ERROR_IS_OK(werr)) {
     346                        d_printf("error starting transaction: %s\n",
     347                                 dos_errstr(werr));
     348                        goto done;
     349                }
     350
    343351                werr = import_process_service(c, conf_ctx, service);
    344352                if (!W_ERROR_IS_OK(werr)) {
     
    502510        }
    503511
    504         sharename = talloc_strdup_lower(mem_ctx, argv[0]);
     512        sharename = talloc_strdup(mem_ctx, argv[0]);
    505513        if (sharename == NULL) {
    506514                d_printf("error: out of memory!\n");
     
    515523        }
    516524
    517         d_printf("[%s]\n", sharename);
     525        d_printf("[%s]\n", service->name);
    518526
    519527        for (count = 0; count < service->num_params; count++) {
     
    601609                case 2:
    602610                        path = argv[1];
    603                         sharename = talloc_strdup_lower(mem_ctx, argv[0]);
     611                        sharename = talloc_strdup(mem_ctx, argv[0]);
    604612                        if (sharename == NULL) {
    605613                                d_printf("error: out of memory!\n");
     
    729737                goto done;
    730738        }
    731         sharename = talloc_strdup_lower(mem_ctx, argv[0]);
     739        sharename = talloc_strdup(mem_ctx, argv[0]);
    732740        if (sharename == NULL) {
    733741                d_printf("error: out of memory!\n");
     
    762770                goto done;
    763771        }
    764         service = talloc_strdup_lower(mem_ctx, argv[0]);
     772        service = talloc_strdup(mem_ctx, argv[0]);
    765773        if (service == NULL) {
    766774                d_printf("error: out of memory!\n");
     
    814822                goto done;
    815823        }
    816         service = talloc_strdup_lower(mem_ctx, argv[0]);
     824        service = talloc_strdup(mem_ctx, argv[0]);
    817825        if (service == NULL) {
    818826                d_printf("error: out of memory!\n");
     
    864872                goto done;
    865873        }
    866         service = talloc_strdup_lower(mem_ctx, argv[0]);
     874        service = talloc_strdup(mem_ctx, argv[0]);
    867875        if (service == NULL) {
    868876                d_printf("error: out of memory!\n");
     
    917925        }
    918926
    919         service = talloc_strdup_lower(mem_ctx, argv[0]);
     927        service = talloc_strdup(mem_ctx, argv[0]);
    920928        if (service == NULL) {
    921929                d_printf("error: out of memory!\n");
     
    957965        }
    958966
    959         service = talloc_strdup_lower(mem_ctx, argv[0]);
     967        service = talloc_strdup(mem_ctx, argv[0]);
    960968        if (service == NULL) {
    961969                d_printf("error: out of memory!\n");
     
    9971005        }
    9981006
    999         service = talloc_strdup_lower(mem_ctx, argv[0]);
     1007        service = talloc_strdup(mem_ctx, argv[0]);
    10001008        if (service == NULL) {
    10011009                d_printf("error: out of memory!\n");
Note: See TracChangeset for help on using the changeset viewer.