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

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/utils/smbpasswd.c

    r414 r740  
    1818
    1919#include "includes.h"
    20 
    21 extern bool AllowDebugChange;
     20#include "system/passwd.h"
     21#include "secrets.h"
     22#include "../librpc/gen_ndr/samr.h"
     23#include "../lib/util/util_pw.h"
     24#include "passdb.h"
    2225
    2326/*
     
    153156                        break;
    154157                case 'D':
    155                         DEBUGLEVEL = atoi(optarg);
     158                        lp_set_cmdline("log level", optarg);
    156159                        break;
    157160                case 'U': {
     
    341344        }
    342345
    343         if (!user_name[0] && (pwd = getpwuid_alloc(talloc_autofree_context(), geteuid()))) {
     346        if (!user_name[0] && (pwd = getpwuid_alloc(talloc_tos(), geteuid()))) {
    344347                fstrcpy(user_name, pwd->pw_name);
    345348                TALLOC_FREE(pwd);
     
    506509
    507510        if (!user_name[0]) {
    508                 pwd = getpwuid_alloc(talloc_autofree_context(), getuid());
     511                pwd = getpwuid_alloc(talloc_tos(), getuid());
    509512                if (pwd) {
    510513                        fstrcpy(user_name,pwd->pw_name);
     
    569572        int ret;
    570573
    571         AllowDebugChange = False;
    572 
    573574#if defined(HAVE_SET_AUTH_PARAMETERS)
    574575        set_auth_parameters(argc, argv);
     
    583584        local_flags = process_options(argc, argv, local_flags);
    584585
    585         setup_logging("smbpasswd", True);
     586        setup_logging("smbpasswd", DEBUG_STDERR);
    586587
    587588        /*
Note: See TracChangeset for help on using the changeset viewer.