diff options
author | taca <taca> | 2007-12-22 04:27:16 +0000 |
---|---|---|
committer | taca <taca> | 2007-12-22 04:27:16 +0000 |
commit | a3e47bed02fa507c74ae6ff95b78b23334fce988 (patch) | |
tree | 7911d8a118a84dde1f98991fe2f8d03652a4dff1 /sysutils/dd_rescue/patches | |
parent | ac9076c170f82f3b73d634aef1d6c75699a72d5c (diff) | |
download | pkgsrc-a3e47bed02fa507c74ae6ff95b78b23334fce988.tar.gz |
Update dd_rescue to 1.14 and add support for DESTDIR.
Changes from 1.12:
The current version is 1.14, released 2007-08-28.
In version 1.14, a bug is fixed that could lead to a target file not having the
correct size when copied in sparse (-a) mode.
In version 1.13, a bug with read-errors and non-seekable output has been fixed.
Diffstat (limited to 'sysutils/dd_rescue/patches')
-rw-r--r-- | sysutils/dd_rescue/patches/patch-ab | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sysutils/dd_rescue/patches/patch-ab b/sysutils/dd_rescue/patches/patch-ab index ce0fab988a3..aff3f18c04e 100644 --- a/sysutils/dd_rescue/patches/patch-ab +++ b/sysutils/dd_rescue/patches/patch-ab @@ -1,5 +1,7 @@ ---- dd_rescue.c.orig 2006-07-23 13:47:50.000000000 +0200 -+++ dd_rescue.c 2006-09-20 20:27:33.000000000 +0200 +$NetBSD: patch-ab,v 1.3 2007/12/22 04:27:17 taca Exp $ + +--- dd_rescue.c.orig 2006-07-23 20:47:50.000000000 +0900 ++++ dd_rescue.c @@ -55,6 +55,10 @@ #include <sys/time.h> #include <sys/stat.h> @@ -11,3 +13,17 @@ int softbs, hardbs, syncfreq; int maxerr, nrerr, reverse, dotrunc, abwrerr, sparse, nosparse; int verbose, quiet, interact, force; +@@ -742,7 +746,12 @@ int main(int argc, char* argv[]) + ipos = 0; + + #ifdef O_DIRECT +- if (posix_memalign(mp, sysconf(_SC_PAGESIZE), softbs)) { ++#ifdef linux ++#define my_valloc(a, b, c) posix_memalign((a), (b), (c)) ++#else ++#define my_valloc(a, b, c) (*(a) = valloc((c))) ++#endif ++ if (my_valloc(mp, sysconf(_SC_PAGESIZE), softbs)) { + fplog(stderr, "dd_rescue: (fatal): allocation of aligned buffer failed!\n"); + cleanup(); exit(18); + } |