summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-08-20 00:27:38 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:28:25 -0800
commitce664b3e918128e6394626f848ab24fb69703626 (patch)
tree32f1117b644f55660159c8b127f277547faecfa2 /debian
parenta3935c828080237114fe2f45e090bf2ed3d175d1 (diff)
if we didn't do a forced overwrite, don't leave the .pam-old files around
because logically there shouldn't be any differences that warrant reviewing
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/local/pam-auth-update1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/local/pam-auth-update b/debian/local/pam-auth-update
index 2373d214..d3e68e0c 100755
--- a/debian/local/pam-auth-update
+++ b/debian/local/pam-auth-update
@@ -354,6 +354,7 @@ sub write_profiles
system('cp','-f',$target,$target . '.pam-old');
rename($dest,$target);
rename("$savedir/$type.new","$savedir/$type");
+ unlink($target . '.pam-old') if (!$force);
}
# at the end of a successful write, reset the 'seen' flag and the