diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-17 14:29:02 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-17 14:29:02 +0300 |
commit | 0942832325f8e81d9e3cc7019cf1b1016d226533 (patch) | |
tree | 5074340668dcd9b184afa3f773e3b09de9139c49 /src/index.c | |
parent | 65be7ade1d092a309d27056d6d55585bda54e8bd (diff) | |
download | apk-tools-0942832325f8e81d9e3cc7019cf1b1016d226533.tar.gz apk-tools-0942832325f8e81d9e3cc7019cf1b1016d226533.tar.bz2 apk-tools-0942832325f8e81d9e3cc7019cf1b1016d226533.tar.xz apk-tools-0942832325f8e81d9e3cc7019cf1b1016d226533.zip |
index: fix output file permissions, verify signed index (ref #46)
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index 12f21fe..c3124d8 100644 --- a/src/index.c +++ b/src/index.c @@ -169,14 +169,14 @@ static int index_main(void *ctx, int argc, char **argv) if (ictx->method == APK_SIGN_GENERATE) { memset(&fi, 0, sizeof(fi)); fi.name = "APKINDEX"; - fi.mode = 0755 | S_IFREG; + fi.mode = 0644 | S_IFREG; os = apk_ostream_counter(&fi.size); apk_db_index_write(&db, os); os->close(os); } if (ictx->output != NULL) - os = apk_ostream_to_file(ictx->output, 0755); + os = apk_ostream_to_file(ictx->output, 0644); else os = apk_ostream_to_fd(STDOUT_FILENO); if (ictx->method == APK_SIGN_GENERATE) { |