﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
324	mdc_set_$mdir_quota doesn't handle reducing quota correctly	Eric Swenson	Eric Swenson	"If, for example, you have a master directory >XFER with 80090 records of quota, and 66539 records of quota used, and you attempt to reduce the quota, by, say 1000 records with this command:

smdq >XFER -1000

The command will fail if the quota account doesn't have have 79090 records of quota available.  This is completely wrong, since you are actually returning quota to the quota account, not charging that quota account additional quota.

The bug is in mdc_set_$mdir_quota, at about line 296, which looks like this:

{{{
          if quota_used > acctent.quota
          then do;                                          /* No quota in account */
                    code = error_table_$mdc_no_quota;
                    go to term_return;
               end;
}}}

This check should not be performed if the value of new_quota (in this example -1000) is negative.

This bug results in the error error_table_$mdc_no_quota being returned even when you are reducing the master directory quota.
"	defect	new	major	MR12.9	Administration	MR12.8			
