diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-11 15:51:46 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-11 16:16:24 +0000 |
commit | ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4 (patch) | |
tree | 207c2886ab74c3ab72b564c05e599cd7834b8e08 /source3/libsmb | |
parent | 1b13a4d22b3f0eca6926ab8ce61147784f6e993e (diff) | |
download | samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.gz samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.tar.bz2 samba-ddd33f035199bce2fc9d8deb3c2c4ad627ad36d4.zip |
s3: Make cli_set_ea_path return NTSTATUS
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index f8a6220173..23f9567f85 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -4120,7 +4120,9 @@ static NTSTATUS cli_set_ea(struct cli_state *cli, uint16_t setup_val, Set an extended attribute on a pathname. *********************************************************/ -bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_name, const char *ea_val, size_t ea_len) +NTSTATUS cli_set_ea_path(struct cli_state *cli, const char *path, + const char *ea_name, const char *ea_val, + size_t ea_len) { unsigned int param_len = 0; uint8_t *param; @@ -4130,7 +4132,7 @@ bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_nam param = SMB_MALLOC_ARRAY(uint8_t, 6+srclen+2); if (!param) { - return false; + return NT_STATUS_NO_MEMORY; } memset(param, '\0', 6); SSVAL(param,0,SMB_INFO_SET_EA); @@ -4142,7 +4144,7 @@ bool cli_set_ea_path(struct cli_state *cli, const char *path, const char *ea_nam status = cli_set_ea(cli, TRANSACT2_SETPATHINFO, param, param_len, ea_name, ea_val, ea_len); SAFE_FREE(param); - return NT_STATUS_IS_OK(status); + return status; } /********************************************************* |