Changeset 740 for vendor/current/source3/utils/smbpasswd.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/utils/smbpasswd.c
r414 r740 18 18 19 19 #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" 22 25 23 26 /* … … 153 156 break; 154 157 case 'D': 155 DEBUGLEVEL = atoi(optarg);158 lp_set_cmdline("log level", optarg); 156 159 break; 157 160 case 'U': { … … 341 344 } 342 345 343 if (!user_name[0] && (pwd = getpwuid_alloc(talloc_ autofree_context(), geteuid()))) {346 if (!user_name[0] && (pwd = getpwuid_alloc(talloc_tos(), geteuid()))) { 344 347 fstrcpy(user_name, pwd->pw_name); 345 348 TALLOC_FREE(pwd); … … 506 509 507 510 if (!user_name[0]) { 508 pwd = getpwuid_alloc(talloc_ autofree_context(), getuid());511 pwd = getpwuid_alloc(talloc_tos(), getuid()); 509 512 if (pwd) { 510 513 fstrcpy(user_name,pwd->pw_name); … … 569 572 int ret; 570 573 571 AllowDebugChange = False;572 573 574 #if defined(HAVE_SET_AUTH_PARAMETERS) 574 575 set_auth_parameters(argc, argv); … … 583 584 local_flags = process_options(argc, argv, local_flags); 584 585 585 setup_logging("smbpasswd", True);586 setup_logging("smbpasswd", DEBUG_STDERR); 586 587 587 588 /*
Note:
See TracChangeset
for help on using the changeset viewer.