mirror of
https://github.com/samba-team/samba.git
synced 2025-11-14 12:23:52 +03:00
Makefile: Added files to smbpasswd.c.
loadparm.c: Patch from tim@quiknet.com for static string problems. server.c: Setup global_myname. smbpass.c: Fix up locking. Add machine_password_delete() call. smbpasswd.c: Added provisional code to add to a domain. lib/rpc/client/cli_login.c: Fixed incorrect cred_hash3 call when setting machine password. lib/rpc/server/srv_netlog.c: Fixed incorrect cred_hash3 call when setting machine password. Jeremy.
This commit is contained in:
@@ -2144,8 +2144,7 @@ static void lp_add_auto_services(char *str)
|
||||
{
|
||||
char *s;
|
||||
char *p;
|
||||
int homes = lp_servicenumber(HOMES_NAME);
|
||||
int printers = lp_servicenumber(PRINTERS_NAME);
|
||||
int homes, printers;
|
||||
|
||||
if (!str)
|
||||
return;
|
||||
@@ -2153,6 +2152,9 @@ static void lp_add_auto_services(char *str)
|
||||
s = strdup(str);
|
||||
if (!s) return;
|
||||
|
||||
homes = lp_servicenumber(HOMES_NAME);
|
||||
printers = lp_servicenumber(PRINTERS_NAME);
|
||||
|
||||
for (p=strtok(s,LIST_SEP);p;p=strtok(NULL,LIST_SEP))
|
||||
{
|
||||
char *home = get_home_dir(p);
|
||||
|
||||
Reference in New Issue
Block a user