From ce664b3e918128e6394626f848ab24fb69703626 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 20 Aug 2008 00:27:38 -0700 Subject: 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 --- debian/local/pam-auth-update | 1 + 1 file changed, 1 insertion(+) (limited to 'debian') 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 -- cgit v1.2.3