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 | 257d2e0d2a6cd4c2ea62399ec97ada46dd8c395c (patch) | |
tree | 0f8a053523bcc4ac424b020ed0fd58614e4350a0 /source3/libsmb | |
parent | 10820162f1cfbfd77fae84327c21d81ff8a6881c (diff) | |
download | samba-257d2e0d2a6cd4c2ea62399ec97ada46dd8c395c.tar.gz samba-257d2e0d2a6cd4c2ea62399ec97ada46dd8c395c.tar.bz2 samba-257d2e0d2a6cd4c2ea62399ec97ada46dd8c395c.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.
(This used to be commit 2f1c95ac7718c1d2a75367ba712edd6b57069432)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 */ |