From 257d2e0d2a6cd4c2ea62399ec97ada46dd8c395c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 9 Mar 2007 18:33:16 +0000 Subject: r21777: As Stevef requested and the Apple guys agreed, make mode_t in posix_open/posix_mkdir -> 8 bytes to match the SET_UNIX_INFO_BASIC call. Steve is updating the Wikki. Jeremy. (This used to be commit 2f1c95ac7718c1d2a75367ba712edd6b57069432) --- source3/libsmb/clifile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 76eddd3f63..ce2081a81e 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1839,7 +1839,7 @@ static int cli_posix_open_internal(struct cli_state *cli, const char *fname, int unsigned int param_len = 0; uint16 setup = TRANSACT2_SETPATHINFO; char param[sizeof(pstring)+6]; - char data[14]; + char data[18]; char *rparam=NULL, *rdata=NULL; char *p; int fnum = -1; @@ -1861,9 +1861,10 @@ static int cli_posix_open_internal(struct cli_state *cli, const char *fname, int SIVAL(p,0,0); /* No oplock. */ SIVAL(p,4,wire_flags); SIVAL(p,8,unix_perms_to_wire(mode)); - SSVAL(p,12,SMB_NO_INFO_LEVEL_RETURNED); /* No info level returned. */ + SIVAL(p,12,0); /* Top bits of perms currently undefined. */ + SSVAL(p,16,SMB_NO_INFO_LEVEL_RETURNED); /* No info level returned. */ - data_len = 14; + data_len = 18; if (!cli_send_trans(cli, SMBtrans2, NULL, /* name */ -- cgit