From 5b48b855600aa316e3c9385e998c68ad757794a2 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 30 Jul 2009 10:42:20 +0300 Subject: audit: protection mask for "symlinks only" and use it for /etc/init.d by default. fixes #99. --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/io.c') 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) { -- cgit v1.2.3-60-g2f50