summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-01-16 12:03:07 +0100
committerVolker Lendecke <vl@samba.org>2011-01-17 08:03:41 +0100
commit797c027cc898a88ec7873a3d34908b09eb2e68ce (patch)
treeb89cb0e91fdcbf53a229569287bdea59dccc240d /source3/utils
parent483e0447f5afaf6ef6d636447f7759117039ac06 (diff)
downloadsamba-797c027cc898a88ec7873a3d34908b09eb2e68ce.tar.gz
samba-797c027cc898a88ec7873a3d34908b09eb2e68ce.tar.bz2
samba-797c027cc898a88ec7873a3d34908b09eb2e68ce.zip
s3: Convert cli_get_fs_quota_info to cli_trans
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcquotas.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index ee8544ef3b..83a069814f 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -321,17 +321,21 @@ static int do_quota(struct cli_state *cli,
case SMB_USER_FS_QUOTA_TYPE:
switch(cmd) {
case QUOTA_GET:
- if (!cli_get_fs_quota_info(cli, quota_fnum, &qt)) {
+ status = cli_get_fs_quota_info(
+ cli, quota_fnum, &qt);
+ if (!NT_STATUS_IS_OK(status)) {
d_printf("%s cli_get_fs_quota_info\n",
- cli_errstr(cli));
+ nt_errstr(status));
return -1;
}
dump_ntquota(&qt,True,numeric,NULL);
break;
case QUOTA_SETLIM:
- if (!cli_get_fs_quota_info(cli, quota_fnum, &qt)) {
+ status = cli_get_fs_quota_info(
+ cli, quota_fnum, &qt);
+ if (!NT_STATUS_IS_OK(status)) {
d_printf("%s cli_get_fs_quota_info\n",
- cli_errstr(cli));
+ nt_errstr(status));
return -1;
}
qt.softlim = pqt->softlim;
@@ -341,17 +345,21 @@ static int do_quota(struct cli_state *cli,
cli_errstr(cli));
return -1;
}
- if (!cli_get_fs_quota_info(cli, quota_fnum, &qt)) {
+ status = cli_get_fs_quota_info(
+ cli, quota_fnum, &qt);
+ if (!NT_STATUS_IS_OK(status)) {
d_printf("%s cli_get_fs_quota_info\n",
- cli_errstr(cli));
+ nt_errstr(status));
return -1;
}
dump_ntquota(&qt,True,numeric,NULL);
break;
case QUOTA_SETFLAGS:
- if (!cli_get_fs_quota_info(cli, quota_fnum, &qt)) {
+ status = cli_get_fs_quota_info(
+ cli, quota_fnum, &qt);
+ if (!NT_STATUS_IS_OK(status)) {
d_printf("%s cli_get_fs_quota_info\n",
- cli_errstr(cli));
+ nt_errstr(status));
return -1;
}
qt.qflags = pqt->qflags;
@@ -360,9 +368,11 @@ static int do_quota(struct cli_state *cli,
cli_errstr(cli));
return -1;
}
- if (!cli_get_fs_quota_info(cli, quota_fnum, &qt)) {
+ status = cli_get_fs_quota_info(
+ cli, quota_fnum, &qt);
+ if (!NT_STATUS_IS_OK(status)) {
d_printf("%s cli_get_fs_quota_info\n",
- cli_errstr(cli));
+ nt_errstr(status));
return -1;
}
dump_ntquota(&qt,True,numeric,NULL);