summaryrefslogtreecommitdiff
path: root/source4/libcli/raw
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-06-08 07:11:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:59 -0500
commit7613015f47f6e45ee9ac4f652f773bd2980fc788 (patch)
tree397ec75c0c1bef08a8d004fe76b59688735ebd27 /source4/libcli/raw
parent7d7e43d94f26aa6c82b5553ab34d088a33bc99a6 (diff)
downloadsamba-7613015f47f6e45ee9ac4f652f773bd2980fc788.tar.gz
samba-7613015f47f6e45ee9ac4f652f773bd2980fc788.tar.bz2
samba-7613015f47f6e45ee9ac4f652f773bd2980fc788.zip
r16091: Without this patch Samba3 will not accept this, and simply setting the "92" to
"100" will give funny permissions... Volker (This used to be commit b76a3d4f590963d48eae8a9899d17ae3833c3dfa)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r--source4/libcli/raw/rawsetfileinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/libcli/raw/rawsetfileinfo.c b/source4/libcli/raw/rawsetfileinfo.c
index 46480c636e..030779ad14 100644
--- a/source4/libcli/raw/rawsetfileinfo.c
+++ b/source4/libcli/raw/rawsetfileinfo.c
@@ -138,7 +138,7 @@ static BOOL smb_raw_setinfo_backend(struct smbcli_tree *tree,
parms, blob);
case RAW_SFILEINFO_UNIX_BASIC:
- NEED_BLOB(92);
+ NEED_BLOB(100);
SBVAL(blob->data, 0, parms->unix_basic.in.end_of_file);
SBVAL(blob->data, 8, parms->unix_basic.in.num_bytes);
smbcli_push_nttime(blob->data, 16, parms->unix_basic.in.status_change_time);
@@ -150,7 +150,8 @@ static BOOL smb_raw_setinfo_backend(struct smbcli_tree *tree,
SBVAL(blob->data, 60, parms->unix_basic.in.dev_major);
SBVAL(blob->data, 68, parms->unix_basic.in.dev_minor);
SBVAL(blob->data, 76, parms->unix_basic.in.unique_id);
- SBVAL(blob->data, 84, parms->unix_basic.in.nlink);
+ SBVAL(blob->data, 84, parms->unix_basic.in.permissions);
+ SBVAL(blob->data, 92, parms->unix_basic.in.nlink);
return True;
case RAW_SFILEINFO_DISPOSITION_INFO: