diff options
author | Steve Langasek <vorlon@debian.org> | 2008-08-20 00:27:38 -0700 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 17:28:25 -0800 |
commit | ce664b3e918128e6394626f848ab24fb69703626 (patch) | |
tree | 32f1117b644f55660159c8b127f277547faecfa2 /debian/local | |
parent | a3935c828080237114fe2f45e090bf2ed3d175d1 (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/local')
-rwxr-xr-x | debian/local/pam-auth-update | 1 |
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 |