projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac93f5
)
Delete .new files first
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 25 Nov 2009 16:33:53 +0000
(08:33 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 25 Nov 2009 16:33:53 +0000
(08:33 -0800)
quota/linux-lib.pl
patch
|
blob
|
history
diff --git
a/quota/linux-lib.pl
b/quota/linux-lib.pl
index
5a21e0c
..
737a5ec
100755
(executable)
--- a/
quota/linux-lib.pl
+++ b/
quota/linux-lib.pl
@@
-542,6
+542,12
@@
or undef on failure. The mode must be one of :
sub quotacheck
{
local $out;
+if ($_[1] == 0 || $_[1] == 1) {
+ &unlink_file("$_[0]/aquota.user.new");
+ }
+if ($_[1] == 0 || $_[1] == 2) {
+ &unlink_file("$_[0]/aquota.group.new");
+ }
local $cmd = $config{'quotacheck_command'};
$cmd =~ s/\s+-[ug]//g;
local $flag = $_[1] == 1 ? "-u" : $_[1] == 2 ? "-g" : "-u -g";