ѕ3: fix domain trust documentation confusion
[ira/wip.git] / source3 / utils / smbcquotas.c
index 78260acf76b6857bca23e167993b4a98a80f4774..a0eed65be364d5583ad8737863fb5c8741370ad9 100644 (file)
@@ -62,7 +62,7 @@ static bool cli_open_policy_hnd(void)
 
        if (!got_policy_hnd) {
 
-               /* Some systems don't support SEC_RIGHTS_MAXIMUM_ALLOWED,
+               /* Some systems don't support SEC_FLAG_MAXIMUM_ALLOWED,
                   but NT sends 0x2000000 so we might as well do it too. */
 
                if (!NT_STATUS_IS_OK(rpccli_lsa_open_policy(global_pipe_hnd, talloc_tos(), True, 
@@ -230,7 +230,7 @@ static int do_quota(struct cli_state *cli,
                SMB_NTQUOTA_STRUCT *pqt)
 {
        uint32 fs_attrs = 0;
-       int quota_fnum = 0;
+       uint16_t quota_fnum = 0;
        SMB_NTQUOTA_LIST *qtl = NULL;
        SMB_NTQUOTA_STRUCT qt;
        ZERO_STRUCT(qt);
@@ -246,7 +246,7 @@ static int do_quota(struct cli_state *cli,
                return 0;
        }
 
-       if (!cli_get_quota_handle(cli, &quota_fnum)) {
+       if (!NT_STATUS_IS_OK(cli_get_quota_handle(cli, &quota_fnum))) {
                d_printf("Quotas are not enabled on this share.\n");
                d_printf("Failed to open %s  %s.\n",
                        FAKE_FILE_NAME_QUOTA_WIN32,cli_errstr(cli));