diff options
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/archive.c b/src/archive.c index dca99fd..31c0909 100644 --- a/src/archive.c +++ b/src/archive.c @@ -331,7 +331,7 @@ int apk_archive_entry_extract(const struct apk_file_info *ae, break; case S_IFREG: if (ae->link_target == NULL) { - fd = open(fn, O_WRONLY | O_CREAT, ae->mode & 07777); + fd = open(fn, O_RDWR | O_CREAT, ae->mode & 07777); if (fd < 0) { r = -1; break; |