summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util.c')
-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)