summaryrefslogtreecommitdiff
path: root/dpkg-split
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2011-01-06 21:59:44 +0100
committerRaphaël Hertzog <hertzog@debian.org>2011-01-06 21:59:44 +0100
commit2df6e3351f79c96c80f5869499a5cb4d59f2943f (patch)
treec8d62cad5ec96ad1bec41c7ceae771bbcd318052 /dpkg-split
parent930bb774c5aeb2a2a083deb7b92432a7b7ab9a35 (diff)
parent1d872bf8ed2a7976c901aff20bf2bd6c20660f65 (diff)
downloaddpkg-2df6e3351f79c96c80f5869499a5cb4d59f2943f.tar.gz
Merge commit '1.15.8.8'
Diffstat (limited to 'dpkg-split')
-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);