diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-29 22:27:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-29 22:27:26 +0000 |
commit | 90177708aaf5bf17d689979701b5f0156b8a2fa4 (patch) | |
tree | dcca0199c3d534976a204b8cd936109fbe5e69d8 /source3/param | |
parent | e305c2c9e2e657974d34d1d58a8f9372921fdae2 (diff) | |
download | samba-90177708aaf5bf17d689979701b5f0156b8a2fa4.tar.gz samba-90177708aaf5bf17d689979701b5f0156b8a2fa4.tar.bz2 samba-90177708aaf5bf17d689979701b5f0156b8a2fa4.zip |
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 used to be commit 6a7164233e3bf9d6bb57c44a53204068e454ae5c)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 2249c8b473..dda31f3efe 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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); |