diff options
author | Philipp Kern <pkern@debian.org> | 2008-03-19 14:34:14 +0100 |
---|---|---|
committer | Philipp Kern <pkern@debian.org> | 2008-03-19 14:34:14 +0100 |
commit | 8db441b54b4ccdcdcde12de1b744de25bbc58a18 (patch) | |
tree | e782df701b1b83a1d34934a8518f7fee92f0f421 /sbin | |
parent | 13c290277241bd3ce081d4b5c48a1618d0770b61 (diff) | |
download | ca-certificates-8db441b54b4ccdcdcde12de1b744de25bbc58a18.tar.gz |
Imported Debian version 20061027debian/20061027
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/update-ca-certificates | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates index 5c349e2..baa1bb9 100644 --- a/sbin/update-ca-certificates +++ b/sbin/update-ca-certificates @@ -41,7 +41,16 @@ CERTBUNDLE=ca-certificates.crt cd /etc/ssl/certs if [ "$fresh" = 1 ]; then echo -n "Clearing symlinks in /etc/ssl/certs..." - find . -type l -print0 | xargs -0 rm -f + find . -type l -print | while read symlink + do + case $(readlink $symlink) in + $CERTSDIR*) rm -f $symlink;; + esac + done + find . -type l -print | while read symlink + do + test -f $symlink || rm -f $symlink + done echo "done." fi echo -n "Updating certificates in /etc/ssl/certs...." |