diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-09 18:33:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:32 -0500 |
commit | 2f1c95ac7718c1d2a75367ba712edd6b57069432 (patch) | |
tree | a89d613ed78319eef0022dd5462e6ac61889bcdc /source/libsmb/clifile.c | |
parent | 319fcb4ea8b7a004760aae82392b69c48af5df91 (diff) | |
download | samba-2f1c95ac7718c1d2a75367ba712edd6b57069432.tar.gz samba-2f1c95ac7718c1d2a75367ba712edd6b57069432.tar.xz samba-2f1c95ac7718c1d2a75367ba712edd6b57069432.zip |
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.
Diffstat (limited to 'source/libsmb/clifile.c')
-rw-r--r-- | source/libsmb/clifile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c index 76eddd3f638..ce2081a81e1 100644 --- a/source/libsmb/clifile.c +++ b/source/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 */ |