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-02 15:25:49 +0300 |
commit | 72bb6231eea1333f4e54b12adf01f5fa3eed6b96 (patch) | |
tree | 2a03aaf9e92a739202dd18c866bca29efe1996fc /src/app_index.c | |
parent | 7377eb74961e13b51acda1b0f8d765984a09c3f0 (diff) | |
download | apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.gz apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.bz2 apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.tar.xz apk-tools-72bb6231eea1333f4e54b12adf01f5fa3eed6b96.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; |