summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-03-10 11:38:27 +0000
committerAndrew Tridgell <tridge@samba.org>2001-03-10 11:38:27 +0000
commitb08b70faf873455ff14dcd633a7c9eb860ba4b28 (patch)
tree5c57e51d8bcca6e645289cc8f7c0c94f6dc666b0 /source3/lib
parent45c2ee3ff2d01fdd0a2db9fa90457cff4663c43d (diff)
downloadsamba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.tar.gz
samba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.tar.bz2
samba-b08b70faf873455ff14dcd633a7c9eb860ba4b28.zip
started support for unicode on the wire in smbd. Using a very similar
method to what was used in the client I now have session setup and tconx working. Currently this is enabled with SMBD_USE_UNICODE environment variable. Once the code is complete this will become a smb.conf option. (This used to be commit 7684c1e67294266d018c6f0cab58f1a9d797174f)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 70513c068e..8ad2cfd713 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -354,6 +354,15 @@ void set_message_bcc(char *buf,int num_bytes)
}
/*******************************************************************
+ setup only the byte count for a smb message, using the end of the
+ message as a marker
+********************************************************************/
+void set_message_end(void *outbuf,void *end_ptr)
+{
+ set_message_bcc(outbuf,PTR_DIFF(end_ptr,smb_buf(outbuf)));
+}
+
+/*******************************************************************
reduce a file name, removing .. elements.
********************************************************************/
void dos_clean_name(char *s)