summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/rawsetfileinfo.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-23 16:45:10 +1000
committerAndrew Tridgell <tridge@samba.org>2008-09-23 16:45:10 +1000
commit219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2 (patch)
tree5aa14d630fd51197dbcefbe4a6203c315ec894fc /source4/libcli/raw/rawsetfileinfo.c
parente3a562b1cd63cbd92c231a3e18b9164f42111e95 (diff)
downloadsamba-219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2.tar.gz
samba-219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2.tar.bz2
samba-219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2.zip
added FULL_EA_INFORMATION setea call
Diffstat (limited to 'source4/libcli/raw/rawsetfileinfo.c')
-rw-r--r--source4/libcli/raw/rawsetfileinfo.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawsetfileinfo.c b/source4/libcli/raw/rawsetfileinfo.c
index 5a4706778a..f7dfb933f1 100644
--- a/source4/libcli/raw/rawsetfileinfo.c
+++ b/source4/libcli/raw/rawsetfileinfo.c
@@ -37,7 +37,7 @@ bool smb_raw_setfileinfo_passthru(TALLOC_CTX *mem_ctx,
#define NEED_BLOB(n) do { \
*blob = data_blob_talloc(mem_ctx, NULL, n); \
- if (blob->data == NULL) return false; \
+ if (blob->data == NULL && n != 0) return false; \
} while (0)
switch (level) {
@@ -109,6 +109,16 @@ bool smb_raw_setfileinfo_passthru(TALLOC_CTX *mem_ctx,
return true;
}
+ case RAW_SFILEINFO_FULL_EA_INFORMATION:
+ printf("num_eas=%d\n", parms->full_ea_information.in.eas.num_eas);
+ NEED_BLOB(ea_list_size_chained(
+ parms->full_ea_information.in.eas.num_eas,
+ parms->full_ea_information.in.eas.eas, 4));
+ ea_put_list_chained(blob->data,
+ parms->full_ea_information.in.eas.num_eas,
+ parms->full_ea_information.in.eas.eas, 4);
+ return true;
+
/* Unhandled levels */
case RAW_SFILEINFO_PIPE_INFORMATION:
case RAW_SFILEINFO_VALID_DATA_INFORMATION: