summaryrefslogtreecommitdiffstats
path: root/control
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-06 22:29:58 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-06 22:29:58 (EDT)
commitb5304d27fbd43744e6d1aab3a74b89efb18bdfea (patch)
treec5109393f4fe23a970ba15d6271b26502c44a457 /control
parent18e25107a68466fce17790e9c8d7d7e667651f55 (diff)
control: B-D on patch
Quoth ob-applypatches: ob-applypatches: Applying patch "01_properly-support-shared-library.patch"... patching file Makefile ob-applypatches: Applying patch "02_bzip2recover-race-open-output.patch"... patching file bzip2recover.c Possibly reversed hunk 2 at 515 Hunk 2 FAILED 269/271. name[n-1] == '2'); } +/*---------------------------------------------*/ +/* Open an output file safely with O_EXCL and good permissions */ +FILE* fopen_output( Char* name, const char* mode ) +{ + FILE *fp; + int fh; + + fh = open(name, O_WRONLY|O_CREAT|O_EXCL, 0600); + if (fh == -1) return NULL; + fp = fdopen(fh, mode); + if (fp == NULL) close(fh); + return fp; +} /*---------------------------------------------------*/ /*--- ---*/ ob-applypatches: Error: Can't apply patch "02_bzip2recover-race-open-output.patch"
Diffstat (limited to 'control')
-rw-r--r--control2
1 files changed, 1 insertions, 1 deletions
diff --git a/control b/control
index a2a850c..69ec4b3 100644
--- a/control
+++ b/control
@@ -1,3 +1,3 @@
Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com>
-Build-Depends: opkbuild (>= 3.0.0-beta7), opkhelper-3.0 (>= 3.1.2)
+Build-Depends: opkbuild (>= 3.0.0-beta7), patch, opkhelper-3.0 (>= 3.1.2)
Homepage: https://sourceware.org/bzip2/