svn commit: samba r1739 - branches/SAMBA_4_0/source/libcli/raw

tridge at samba.org tridge at samba.org
Wed Aug 11 21:10:18 GMT 2004


Author: tridge
Date: 2004-08-11 21:10:16 +0000 (Wed, 11 Aug 2004)
New Revision: 1739
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1739&nolog=1
Log:
fixed the padding in setpathinfo, noticed when forcing negotiated ascii strings


Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawsetfileinfo.c

Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawsetfileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/rawsetfileinfo.c	2004-08-11 21:09:36 UTC (rev 1738)
+++ branches/SAMBA_4_0/source/libcli/raw/rawsetfileinfo.c	2004-08-11 21:10:16 UTC (rev 1739)
@@ -164,10 +164,10 @@
  Very raw set path info - takes data blob
 ****************************************************************************/
 static struct smbcli_request *smb_raw_setpathinfo_blob_send(struct smbcli_tree *tree,
-							 TALLOC_CTX *mem_ctx,
-							 const char *fname,
-							 uint16_t info_level,
-							 DATA_BLOB *blob)
+							    TALLOC_CTX *mem_ctx,
+							    const char *fname,
+							    uint16_t info_level,
+							    DATA_BLOB *blob)
 {
 	struct smb_trans2 tp;
 	uint16_t setup = TRANSACT2_SETPATHINFO;
@@ -180,15 +180,15 @@
 	tp.in.max_data = 0;
 	tp.in.setup = &setup;
 	
-	tp.in.params = data_blob_talloc(mem_ctx, NULL, 4);
+	tp.in.params = data_blob_talloc(mem_ctx, NULL, 6);
 	if (!tp.in.params.data) {
 		return NULL;
 	}
 	SSVAL(tp.in.params.data, 0, info_level);
-	SSVAL(tp.in.params.data, 2, 0);
+	SIVAL(tp.in.params.data, 2, 0);
 	smbcli_blob_append_string(tree->session, mem_ctx, 
-			       &tp.in.params,
-			       fname, STR_TERMINATE);
+				  &tp.in.params,
+				  fname, STR_TERMINATE);
 
 	tp.in.data = *blob;
 



More information about the samba-cvs mailing list