diff options
author | Tim Potter <tpot@samba.org> | 2001-09-12 01:15:24 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-09-12 01:15:24 +0000 |
commit | e041c15c533f4f181875e334463c825b46a79a7c (patch) | |
tree | 16877f8b130f65620216f7a063ee65af93f58d80 /source3 | |
parent | a39d4c052c2787f97957d432c0faa337144778f8 (diff) | |
download | samba-e041c15c533f4f181875e334463c825b46a79a7c.tar.gz samba-e041c15c533f4f181875e334463c825b46a79a7c.tar.bz2 samba-e041c15c533f4f181875e334463c825b46a79a7c.zip |
Hmm - needs to be converted to pull/push unistr routines. But at least it
compiles now which should keep the build farm happy.
(This used to be commit 5686a2cfe874e8b30bcb2781fa4bfe7ae0cefb17)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/msdfs/msdfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/msdfs/msdfs.c b/source3/msdfs/msdfs.c index 3377507ca3..da5a20f909 100644 --- a/source3/msdfs/msdfs.c +++ b/source3/msdfs/msdfs.c @@ -370,8 +370,9 @@ static int setup_ver2_dfs_referral(char* pathname, char** ppdata, DEBUG(10,("setting up version2 referral\nRequested path:\n")); +#if 0 requestedpathlen = (dos_struni2(uni_requestedpath,pathname,512)+1)*2; - +#endif dump_data(10,uni_requestedpath,requestedpathlen); DEBUG(10,("ref count = %u\n",junction->referral_count)); @@ -435,7 +436,9 @@ static int setup_ver2_dfs_referral(char* pathname, char** ppdata, SSVAL(pdata,offset+16,uni_reqpathoffset1-offset); SSVAL(pdata,offset+18,uni_reqpathoffset2-offset); /* copy referred path into current offset */ +#if 0 unilen = (dos_struni2(pdata+uni_curroffset,ref->alternate_path,512) +1)*2; +#endif SSVAL(pdata,offset+20,uni_curroffset-offset); uni_curroffset += unilen; @@ -463,8 +466,9 @@ static int setup_ver3_dfs_referral(char* pathname, char** ppdata, DEBUG(10,("setting up version3 referral\n")); +#if 0 reqpathlen = (dos_struni2(uni_reqpath,pathname,512)+1)*2; - +#endif dump_data(10,uni_reqpath,reqpathlen); uni_reqpathoffset1 = REFERRAL_HEADER_SIZE + VERSION3_REFERRAL_SIZE * junction->referral_count; @@ -513,7 +517,9 @@ static int setup_ver3_dfs_referral(char* pathname, char** ppdata, SSVAL(pdata,offset+12,uni_reqpathoffset1-offset); SSVAL(pdata,offset+14,uni_reqpathoffset2-offset); /* copy referred path into current offset */ +#if 0 unilen = (dos_struni2(pdata+uni_curroffset,ref->alternate_path,512) +1)*2; +#endif SSVAL(pdata,offset+16,uni_curroffset-offset); /* copy 0x10 bytes of 00's in the ServiceSite GUID */ memset(pdata+offset+18,'\0',16); |