diff options
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); + } |