From c72247e05c969c6b59c4bb5f6cc39e2ca6b9dd63 Mon Sep 17 00:00:00 2001 From: MANTANI Nobutaka Date: Mon, 14 Mar 2005 17:09:49 +0000 Subject: Add dd_rescue, a dd tool suitable for rescuing data from a medium with errors. --- sysutils/dd_rescue/files/patch-dd_rescue.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sysutils/dd_rescue/files/patch-dd_rescue.c (limited to 'sysutils/dd_rescue/files/patch-dd_rescue.c') diff --git a/sysutils/dd_rescue/files/patch-dd_rescue.c b/sysutils/dd_rescue/files/patch-dd_rescue.c new file mode 100644 index 000000000000..99594b66653b --- /dev/null +++ b/sysutils/dd_rescue/files/patch-dd_rescue.c @@ -0,0 +1,12 @@ +--- dd_rescue.c.orig Mon Feb 14 09:47:10 2005 ++++ dd_rescue.c Tue Mar 15 00:59:42 2005 +@@ -717,7 +717,8 @@ + ipos = 0; + + #ifdef O_DIRECT +- if (posix_memalign(mp, sysconf(_SC_PAGESIZE), softbs)) { ++ buf = malloc(softbs); ++ if (!buf) { + fplog(stderr, "dd_rescue: (fatal): allocation of aligned buffer failed!\n"); + cleanup(); exit(18); + } -- cgit v1.2.3