diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-05-20 00:32:51 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-05-20 00:32:51 +0000 |
commit | 2a1711eaaf08bb6776770cd3c96b3010f431a677 (patch) | |
tree | 99caacb23ae749ca87abc2ba0642bde29fcec224 /source/lib | |
parent | c0bae276a99211c0c7149a5e4e801706870074fd (diff) | |
download | samba-2a1711eaaf08bb6776770cd3c96b3010f431a677.tar.gz samba-2a1711eaaf08bb6776770cd3c96b3010f431a677.tar.xz samba-2a1711eaaf08bb6776770cd3c96b3010f431a677.zip |
dir.c: Fixed double slash issue.
includes.h: Changed to ifdef FAST_SHARE_MODES.
ipc.c: Changed lp_workgroup() to myworkgroup.
loadparm.c: Added new shared mem parameters. Added Luke's fix.
locking.c: Rewrite to do share modes better (both fast and slow modes).
nameannounce.c: Changed lp_workgroup() to myworkgroup. Added Luke's fix.
nameconf.c: Changed lp_workgroup() to myworkgroup.
namedbname.c: Improved debug.
namedbserver.c: Changed lp_workgroup() to myworkgroup.
namedbsubnet.c: Added Luke's fix - rewritten somewhat.
namedbwork.c: Changed lp_workgroup() to myworkgroup.
nameelect.c: Added Luke's fix - rewritten somewhat.
nameresp.c: Stoped shadowing global.
nameserv.c: Added Luke's fix - Improved debug.
nameservreply.c: Improved debug.
namework.c: Changed lp_workgroup() to myworkgroup.
nmbd.c: Added Luke's fix - Changed lp_workgroup() to myworkgroup.
pipes.c: Changed lp_workgroup() to myworkgroup.
proto.h: Added Luke's fix, added smb_shm_ proto's.
reply.c: Changed lp_workgroup() to myworkgroup.
server.c: Rewrite to do share modes better (both fast and slow modes).
shmem.c: Rewrite to do share modes better (both fast and slow modes).
smb.h: Rewrite to do share modes better (both fast and slow modes).
status.c: Rewrite to do share modes better (both fast and slow modes).
trans2.c: Fixed double slash issue.
util.c: Tidied up, created myworkgroup.
Jeremy Allison (jallison@whistle.com).
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 3315f1a41a1..0ed08405ba7 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -73,6 +73,7 @@ pstring myhostname=""; pstring user_socket_options=""; pstring sesssetup_user=""; pstring myname = ""; +fstring myworkgroup = ""; int smb_read_error = 0; @@ -3431,7 +3432,7 @@ BOOL is_vetoed_name(char *name) nameptr++; continue; } - if(name_end = strchr(nameptr,'/')) + if((name_end = strchr(nameptr,'/'))!=NULL) { *name_end = 0; } @@ -3472,7 +3473,7 @@ BOOL is_vetoed_path(char *name) nameptr++; continue; } - if(name_end = strchr(nameptr,'/')) + if((name_end = strchr(nameptr,'/'))!=NULL) { *name_end = 0; } |