Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/source3/lib/smbconf/smbconf_init.c

    r414 r740  
    2222#include "lib/smbconf/smbconf_txt.h"
    2323#include "lib/smbconf/smbconf_reg.h"
     24#include "lib/smbconf/smbconf_init.h"
    2425
    2526/**
     
    3435 * -  "txt" or "file"
    3536 */
    36 WERROR smbconf_init(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx,
     37sbcErr smbconf_init(TALLOC_CTX *mem_ctx, struct smbconf_ctx **conf_ctx,
    3738                    const char *source)
    3839{
    39         WERROR werr;
     40        sbcErr err;
    4041        char *backend = NULL;
    4142        char *path = NULL;
     
    4445
    4546        if (conf_ctx == NULL) {
    46                 werr = WERR_INVALID_PARAM;
     47                err = SBC_ERR_INVALID_PARAM;
    4748                goto done;
    4849        }
    4950
    5051        if ((source == NULL) || (*source == '\0')) {
    51                 werr = WERR_INVALID_PARAM;
     52                err = SBC_ERR_INVALID_PARAM;
    5253                goto done;
    5354        }
     
    5556        backend = talloc_strdup(tmp_ctx, source);
    5657        if (backend == NULL) {
    57                 werr = WERR_NOMEM;
     58                err = SBC_ERR_NOMEM;
    5859                goto done;
    5960        }
     
    6970
    7071        if (strequal(backend, "registry") || strequal(backend, "reg")) {
    71                 werr = smbconf_init_reg(mem_ctx, conf_ctx, path);
     72                err = smbconf_init_reg(mem_ctx, conf_ctx, path);
    7273        } else if (strequal(backend, "file") || strequal(backend, "txt")) {
    73                 werr = smbconf_init_txt(mem_ctx, conf_ctx, path);
     74                err = smbconf_init_txt(mem_ctx, conf_ctx, path);
    7475        } else if (sep == NULL) {
    7576                /*
     
    7879                 * string as a path argument.
    7980                 */
    80                 werr = smbconf_init_txt(mem_ctx, conf_ctx, backend);
     81                err = smbconf_init_txt(mem_ctx, conf_ctx, backend);
    8182        } else {
    8283                /*
     
    8788                 * 'include = /path/to/file.%T'
    8889                 */
    89                 werr = smbconf_init_txt(mem_ctx, conf_ctx, source);
     90                err = smbconf_init_txt(mem_ctx, conf_ctx, source);
    9091        }
    9192
    9293done:
    9394        talloc_free(tmp_ctx);
    94         return werr;
     95        return err;
    9596}
Note: See TracChangeset for help on using the changeset viewer.