summaryrefslogtreecommitdiff
path: root/dpkg-split/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'dpkg-split/split.c')
-rw-r--r--dpkg-split/split.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dpkg-split/split.c b/dpkg-split/split.c
index 4d54cf20f..6992cad47 100644
--- a/dpkg-split/split.c
+++ b/dpkg-split/split.c
@@ -197,7 +197,7 @@ mksplit(const char *file_src, const char *prefix, size_t partsize,
}
/* Split the data. */
- fd_dst = open(file_dst.buf, O_CREAT | O_WRONLY, 0644);
+ fd_dst = creat(file_dst.buf, 0644);
if (fd_dst < 0)
ohshite(_("unable to open file '%s'"), file_dst.buf);