ca-certificates: the /etc/ssl/certs is not created
while debugging a gnutls issue I removed /etc/ssl/certs dir. When reinstalling ca-certificates package I noticed that /etc/ssl/certs was not recreated. I suspect it is related the fact that this dir is empty in package.
To reproduce:
rm -r /etc/ssl/certs
apk del ca-certificates
apk add -v -v ca-certificates
verify that /etc/ssl/certs is listed there
ls -l /etc/ssl
The /etc/ssl/certs is missing.
As a side effect, the trigger script will silently fail.
(from redmine: issue id 1348, created on 2012-09-03, closed on 2012-09-07)
- Changesets:
- Revision 8a4371cc by Timo Teräs on 2012-09-04T07:38:13Z:
db: remove AT_SYMLINK_NOFOLLOW for directory permissions
fchmodat does not support this flag - symlinks do not have permissions.
Sysadmin probably does not expect us to not follow symlinks either:
if /var -> /mnt/foo/var, we should be making sure the permissions
and ownership is correct on the target directory, not on the symlink.
Since fchmodat never returned ENOENT with AT_SYMLINK_NOFOLLOW, this
also fixes directory re-creation if it does not exist. fixes #1348.
- Revision 5014d53570be8a01ce17e9e2586765903b39a862 by Natanael Copa on 2012-09-04T09:31:50Z:
main/apk-tools: fix directory re-creation
ref #1348