diff options
author | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2005-03-14 17:09:49 +0000 |
---|---|---|
committer | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2005-03-14 17:09:49 +0000 |
commit | c72247e05c969c6b59c4bb5f6cc39e2ca6b9dd63 (patch) | |
tree | 398d08a5c85c4b28739a1cea7ebaee7ff143fd73 /sysutils/dd_rescue/files/patch-dd_rescue.c | |
parent | . Install a copy of doc files. (diff) |
Add dd_rescue, a dd tool suitable for rescuing data from a medium with errors.
Diffstat (limited to 'sysutils/dd_rescue/files/patch-dd_rescue.c')
-rw-r--r-- | sysutils/dd_rescue/files/patch-dd_rescue.c | 12 |
1 files changed, 12 insertions, 0 deletions
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); + } |