summaryrefslogtreecommitdiffstats
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-05 13:13:52 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-05 13:13:52 +0300
commit46e93295688385af6b4b5d17f97675087a90aba4 (patch)
tree4af28531ab57f08a5ba58841fa9d385a93cdb3ab /src/apk_io.h
parent856181a0325d39e7d26566f118bc4219e3837a4b (diff)
downloadapk-tools-46e93295688385af6b4b5d17f97675087a90aba4.tar.bz2
apk-tools-46e93295688385af6b4b5d17f97675087a90aba4.tar.xz
io: flag for following symlinks on fstat
usually we are interested on the actual file's length. but audit is interested about the link. so add a flag for this and use it in audit.
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index 759bec4..53b91b3 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -88,7 +88,9 @@ size_t apk_ostream_write_string(struct apk_ostream *ostream, const char *string)
apk_blob_t apk_blob_from_istream(struct apk_istream *istream, size_t size);
apk_blob_t apk_blob_from_file(int atfd, const char *file);
-int apk_file_get_info(int atfd, const char *filename, int checksum,
+#define APK_FI_NOFOLLOW 0x80000000
+
+int apk_file_get_info(int atfd, const char *filename, unsigned int flags,
struct apk_file_info *fi);
int apk_url_download(const char *url, int atfd, const char *file);
const char *apk_url_local_file(const char *url);