diff options
author | Volker Lendecke <vl@samba.org> | 2011-01-16 12:14:26 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-01-17 08:03:41 +0100 |
commit | a1f541723d40f95e7fff13e8c06a037306deccce (patch) | |
tree | c4a6e808f9226946e13e6c0addfe82a266220f95 /source3/utils | |
parent | 797c027cc898a88ec7873a3d34908b09eb2e68ce (diff) | |
download | samba-a1f541723d40f95e7fff13e8c06a037306deccce.tar.gz samba-a1f541723d40f95e7fff13e8c06a037306deccce.tar.bz2 samba-a1f541723d40f95e7fff13e8c06a037306deccce.zip |
s3: Convert cli_set_fs_quota_info to cli_trans
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbcquotas.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index 83a069814f..8cf1751578 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -340,9 +340,11 @@ static int do_quota(struct cli_state *cli, } qt.softlim = pqt->softlim; qt.hardlim = pqt->hardlim; - if (!cli_set_fs_quota_info(cli, quota_fnum, &qt)) { + status = cli_set_fs_quota_info( + cli, quota_fnum, &qt); + if (!NT_STATUS_IS_OK(status)) { d_printf("%s cli_set_fs_quota_info\n", - cli_errstr(cli)); + nt_errstr(status)); return -1; } status = cli_get_fs_quota_info( @@ -363,9 +365,11 @@ static int do_quota(struct cli_state *cli, return -1; } qt.qflags = pqt->qflags; - if (!cli_set_fs_quota_info(cli, quota_fnum, &qt)) { + status = cli_set_fs_quota_info( + cli, quota_fnum, &qt); + if (!NT_STATUS_IS_OK(status)) { d_printf("%s cli_set_fs_quota_info\n", - cli_errstr(cli)); + nt_errstr(status)); return -1; } status = cli_get_fs_quota_info( |