diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-12-03 03:57:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-12-03 03:57:29 +0000 |
commit | 87df23458eac4e4a81673442db49467a65102b15 (patch) | |
tree | 524ba33d486cd3fbf9bb30582e4459fc23de4047 /source3 | |
parent | 0aa493cc0303aa4177f289b9e4c797c8fa180672 (diff) | |
download | samba-87df23458eac4e4a81673442db49467a65102b15.tar.gz samba-87df23458eac4e4a81673442db49467a65102b15.tar.bz2 samba-87df23458eac4e4a81673442db49467a65102b15.zip |
allow local_machine and remote_machine (%L and %m macros) to contain
spaces
(This used to be commit 93f0619e049d1598db0c3022aeccf33910b0550f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 06b96b13d9..c903c7a1fd 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -73,7 +73,6 @@ int reply_special(char *inbuf,char *outbuf) pstring name1,name2; extern fstring remote_machine; extern fstring local_machine; - char *p; int len; char name_type = 0; @@ -96,21 +95,18 @@ int reply_special(char *inbuf,char *outbuf) name1,name2)); fstrcpy(remote_machine,name2); + remote_machine[15] = 0; trim_string(remote_machine," "," "); - p = strchr(remote_machine,' '); strlower(remote_machine); - if (p) *p = 0; fstrcpy(local_machine,name1); - trim_string(local_machine," "," "); len = strlen(local_machine); if (len == 16) { name_type = local_machine[15]; local_machine[15] = 0; } - p = strchr(local_machine,' '); + trim_string(local_machine," "," "); strlower(local_machine); - if (p) *p = 0; if (name_type == 'R') { /* We are being asked for a pathworks session --- |