summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-30 10:42:20 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-30 10:42:20 +0300
commit5b48b855600aa316e3c9385e998c68ad757794a2 (patch)
tree05a0c84623a1360a513aa13f4e6192e969ea5060 /src/io.c
parent60c668f1dccc77800548ec54587724ee9e61f4e3 (diff)
downloadapk-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 8739752..18e89d3 100644
--- a/src/io.c
+++ b/src/io.c
@@ -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) {