diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-30 10:42:20 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-30 10:42:20 +0300 |
commit | 5b48b855600aa316e3c9385e998c68ad757794a2 (patch) | |
tree | 05a0c84623a1360a513aa13f4e6192e969ea5060 /src/io.c | |
parent | 60c668f1dccc77800548ec54587724ee9e61f4e3 (diff) | |
download | apk-tools-5b48b855600aa316e3c9385e998c68ad757794a2.tar.gz apk-tools-5b48b855600aa316e3c9385e998c68ad757794a2.tar.bz2 apk-tools-5b48b855600aa316e3c9385e998c68ad757794a2.tar.xz apk-tools-5b48b855600aa316e3c9385e998c68ad757794a2.zip |
audit: protection mask for "symlinks only"
and use it for /etc/init.d by default. fixes #99.
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -468,7 +468,7 @@ int apk_file_get_info(const char *filename, int checksum, struct apk_file_info * struct stat st; struct apk_bstream *bs; - if (stat(filename, &st) != 0) + if (lstat(filename, &st) != 0) return -errno; *fi = (struct apk_file_info) { |