pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
How FreeBSD/ports patches (Re: pkg/38620: [PATCH] sysutils/dd_rescue needs patch
I have checked the ports for FreeBSD, they do the
different way.
http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/dd_rescue/files/
Following patch also works with NetBSD
(Replace patches/patch-ab with this file)
--- dd_rescue.c 2007-08-26 22:42:44.000000000 +0900
+++ dd_rescue.c 2008-05-10 20:01:17.000000000 +0900
@@ -781,7 +781,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);
}
---
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.
Home |
Main Index |
Thread Index |
Old Index