projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4128dbe
)
Detect usrjquota mount option
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 11 Feb 2008 17:58:17 +0000
(17:58 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 11 Feb 2008 17:58:17 +0000
(17:58 +0000)
quota/linux-lib.pl
patch
|
blob
|
history
diff --git
a/quota/linux-lib.pl
b/quota/linux-lib.pl
index
d79bbaa
..
d9c5717
100644
(file)
--- a/
quota/linux-lib.pl
+++ b/
quota/linux-lib.pl
@@
-54,10
+54,10
@@
return @rv;
# 3 = User and group quotas
sub quota_can
{
-return ($_[1]->[3] =~ /usrquota/ ||
- $_[0]->[3] =~ /usrquota/ ? 1 : 0) +
- ($_[1]->[3] =~ /grpquota/ ||
- $_[0]->[3] =~ /grpquota/ ? 2 : 0);
+return ($_[1]->[3] =~ /usrquota
|usrjquota
/ ||
+ $_[0]->[3] =~ /usrquota
|usrjquota
/ ? 1 : 0) +
+ ($_[1]->[3] =~ /grpquota
|grpjquota
/ ||
+ $_[0]->[3] =~ /grpquota
|grpjquota
/ ? 2 : 0);
}
# quota_now(&mnttab, &fstab)