20211016 (patches unapplied)

Imported using git-ubuntu import.
This commit is contained in:
Julien Cristau 2021-10-16 18:09:43 +02:00 committed by git-ubuntu importer
parent 702bb40703
commit d4d6ab167e
Notes: git-ubuntu importer 2021-10-26 05:40:45 +00:00
  [ Michael Shuler ]
  * Fix error on install when TEMPBUNDLE missing. Closes: #996005
2 changed files with 15 additions and 4 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
ca-certificates (20211016) unstable; urgency=low
[ Michael Shuler ]
* Fix error on install when TEMPBUNDLE missing. Closes: #996005
-- Julien Cristau <jcristau@debian.org> Sat, 16 Oct 2021 18:09:43 +0200
ca-certificates (20211004) unstable; urgency=low
[ Debian Janitor ]

View file

@ -187,10 +187,14 @@ then
fi
fi
chmod 0644 "$TEMPBUNDLE"
mv -f "$TEMPBUNDLE" "$CERTBUNDLE"
# Restore proper SELinux label after moving the file
[ -x /sbin/restorecon ] && /sbin/restorecon "$CERTBUNDLE" >/dev/null 2>&1
# chmod and mv only if TEMPBUNDLE exists or install may fail, #996005
if [ -f "$TEMPBUNDLE" ]
then
chmod 0644 "$TEMPBUNDLE"
mv -f "$TEMPBUNDLE" "$CERTBUNDLE"
# Restore proper SELinux label after moving the file
[ -x /sbin/restorecon ] && /sbin/restorecon "$CERTBUNDLE" >/dev/null 2>&1
fi
echo "$ADDED_CNT added, $REMOVED_CNT removed; done."