diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-09-04 10:38:13 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-09-04 10:38:13 +0300 |
commit | 8a4371ccd73e8f8672466881bd3b782de919cd93 (patch) | |
tree | 49fb7d17651992bb91d5e97b4712d4eb8f4b6c56 /src/apk_database.h | |
parent | 000dfd923f512b673c3c77ae78ff732ae72c818f (diff) | |
download | apk-tools-8a4371ccd73e8f8672466881bd3b782de919cd93.tar.gz apk-tools-8a4371ccd73e8f8672466881bd3b782de919cd93.tar.bz2 apk-tools-8a4371ccd73e8f8672466881bd3b782de919cd93.tar.xz apk-tools-8a4371ccd73e8f8672466881bd3b782de919cd93.zip |
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.
Diffstat (limited to 'src/apk_database.h')
0 files changed, 0 insertions, 0 deletions