From e041c43c8961880cebbc18c1be59bde99582ea2a Mon Sep 17 00:00:00 2001 From: wens Date: Mon, 8 Aug 2005 14:23:24 +0000 Subject: =?UTF-8?q?add=20super=20sys=20support=20op=20(=E7=BE=A4=E7=B5=84?= =?UTF-8?q?=E9=95=B7)=20HUGETLB=20doesn't=20need=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3010 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mbbsd/mail.c') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 0d57a8bc..dd69aba9 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -202,8 +202,12 @@ void setupmailusage(void) { // Ptt: get_sum_records is a bad function int max_keepmail = MAX_KEEPMAIL; - if( HasUserPerm(PERM_SYSSUBOP | PERM_ACCTREG | PERM_PRG | - PERM_ACTION | PERM_PAINT) ){ + if (HasUserPerm(PERM_SYSSUPERSUBOP)) { + mailsumlimit = 900; + max_keepmail = 700; + } + else if (HasUserPerm(PERM_SYSSUBOP | PERM_ACCTREG | PERM_PRG | + PERM_ACTION | PERM_PAINT)) { mailsumlimit = 700; max_keepmail = 500; } else if (HasUserPerm(PERM_BM)) { -- cgit v1.2.3