diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-23 16:45:10 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-23 16:45:10 +1000 |
commit | 219aa1b4fd2a8b93d5b2e67f26abc7f59fb2e0f2 (patch) | |
tree | 5aa14d630fd51197dbcefbe4a6203c315ec894fc /source4/libcli/raw/rawsetfileinfo.c | |
parent | e3a562b1cd63cbd92c231a3e18b9164f42111e95 (diff) | |
download | samba-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.c | 12 |
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: |