diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-02 15:25:12 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-09 16:09:19 +0300 |
commit | 6d71f49c11e22a617234ef47123ab9287cde23af (patch) | |
tree | 320b27af8e13815cdb8e5e458de74a9b343a0f1a /src/app_index.c | |
parent | 2156107afcd1954fd36ab1e55cf73390548e6d07 (diff) | |
download | apk-tools-6d71f49c11e22a617234ef47123ab9287cde23af.tar.gz apk-tools-6d71f49c11e22a617234ef47123ab9287cde23af.tar.bz2 apk-tools-6d71f49c11e22a617234ef47123ab9287cde23af.tar.xz apk-tools-6d71f49c11e22a617234ef47123ab9287cde23af.zip |
io: make ostream_file always use tmpname
Diffstat (limited to 'src/app_index.c')
-rw-r--r-- | src/app_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_index.c b/src/app_index.c index 18c240f..25ca3b4 100644 --- a/src/app_index.c +++ b/src/app_index.c @@ -199,7 +199,7 @@ static int index_main(void *ctx, struct apk_database *db, struct apk_string_arra return -1; if (ictx->output != NULL) - os = apk_ostream_to_file(AT_FDCWD, ictx->output, NULL, 0644); + os = apk_ostream_to_file(AT_FDCWD, ictx->output, 0644); else os = apk_ostream_to_fd(STDOUT_FILENO); if (IS_ERR_OR_NULL(os)) return -1; |