/[smeserver]/rpms/e-smith-quota/sme8/e-smith-quota-1.10.0-Limits.patch
ViewVC logotype

Annotation of /rpms/e-smith-quota/sme8/e-smith-quota-1.10.0-Limits.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 19:31:00 2007 UTC (17 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: e-smith-quota-1_10_0-6_el5_sme, e-smith-quota-1_10_0-5_el5_sme, e-smith-quota-1_10_0-8_el5_sme, e-smith-quota-1_10_0-11_el5_sme, e-smith-quota-1_10_0-9_el5_sme, e-smith-quota-1_10_0-10_el5_sme, e-smith-quota-1_10_0-7_el5_sme
Import on branch sme8 of package e-smith-quota-1.10.0-5.el5.sme.src.rpm

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-quota-1.10.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/quota mezzanine_patched_e-smith-quota-1.10.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/quota
2     --- e-smith-quota-1.10.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/quota 2003-06-24 17:18:03.000000000 -0400
3     +++ mezzanine_patched_e-smith-quota-1.10.0/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/quota 2006-07-16 14:15:59.000000000 -0400
4     @@ -131,8 +131,7 @@
5     <entry>
6     <base>ERR_HARD_LT_SOFT</base>
7     <trans>
8     - Error: absolute limit must be greater than or equal to limit with
9     - grace time.
10     + Error: absolute limit must be greater than limit with grace time.
11     </trans>
12     </entry>
13     <entry>
14     diff -Nur -x '*.orig' -x '*.rej' e-smith-quota-1.10.0/root/etc/e-smith/templates/usr/lib/e-smith-quota/userOverQuota.tmpl mezzanine_patched_e-smith-quota-1.10.0/root/etc/e-smith/templates/usr/lib/e-smith-quota/userOverQuota.tmpl
15     --- e-smith-quota-1.10.0/root/etc/e-smith/templates/usr/lib/e-smith-quota/userOverQuota.tmpl 2006-03-16 01:56:02.000000000 -0500
16     +++ mezzanine_patched_e-smith-quota-1.10.0/root/etc/e-smith/templates/usr/lib/e-smith-quota/userOverQuota.tmpl 2006-07-16 14:16:35.000000000 -0400
17     @@ -19,7 +19,8 @@
18     $OUT .= gettext("Your current disk usage:").
19     " $data{usage} ".gettext("Mb")."\n";
20     $OUT .= gettext("Your maximum usage:").
21     - " $data{hardQuota} ".gettext("Mb")."\n";
22     + ($data{hardQuota} == 0 ? gettext(" no limit set") :
23     + " $data{hardQuota} ".gettext("Mb"))."\n";
24     $OUT .= gettext("Warnings start at:").
25     " $data{softQuota} ".gettext("Mb")."\n";
26     $OUT .= gettext("Grace period ends:")." $gracePeriodEnds\n";
27     diff -Nur -x '*.orig' -x '*.rej' e-smith-quota-1.10.0/root/sbin/e-smith/warnquota mezzanine_patched_e-smith-quota-1.10.0/root/sbin/e-smith/warnquota
28     --- e-smith-quota-1.10.0/root/sbin/e-smith/warnquota 2006-03-16 01:56:02.000000000 -0500
29     +++ mezzanine_patched_e-smith-quota-1.10.0/root/sbin/e-smith/warnquota 2006-07-16 14:14:36.000000000 -0400
30     @@ -143,7 +143,7 @@
31     gracePeriod => $bt
32     };
33     }
34     - elsif ( ($bc > $bh) || ($bc > $bs) )
35     + elsif ( (($bc > $bh) && ($bh > 0)) || (($bc > $bs) && ($bs > 0)) )
36     {
37     # User is over quota
38     # gracePeriod is 0 if over hard limit
39     diff -Nur -x '*.orig' -x '*.rej' e-smith-quota-1.10.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/quota.pm mezzanine_patched_e-smith-quota-1.10.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/quota.pm
40     --- e-smith-quota-1.10.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/quota.pm 2006-07-16 14:18:00.000000000 -0400
41     +++ mezzanine_patched_e-smith-quota-1.10.0/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/quota.pm 2006-07-16 14:15:59.000000000 -0400
42     @@ -304,7 +304,7 @@
43     # Make sure that soft limit is less than hard limit.
44     #------------------------------------------------------------
45    
46     - unless ($hardlim == 0 or $hardlim >= $softlim)
47     + unless ($hardlim == 0 or $hardlim > $softlim)
48     {
49     return $self->error('ERR_HARD_LT_SOFT', 'Initial');
50     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed