aboutsummaryrefslogtreecommitdiff
path: root/sysutils/dd_rescue
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2007-02-11 18:06:58 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2007-02-11 18:06:58 +0000
commitc99819ffa8e683de9da65d94f392432dbffed3bc (patch)
tree9ed76f5333b18b9989fab0caf7a2a814c724288e /sysutils/dd_rescue
parentdb6a2d08f1c03a79bb9818f380ba7133a9875d45 (diff)
downloadports-c99819ffa8e683de9da65d94f392432dbffed3bc.tar.gz
ports-c99819ffa8e683de9da65d94f392432dbffed3bc.zip
Notes
Diffstat (limited to 'sysutils/dd_rescue')
-rw-r--r--sysutils/dd_rescue/files/patch-dd_rescue.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/sysutils/dd_rescue/files/patch-dd_rescue.c b/sysutils/dd_rescue/files/patch-dd_rescue.c
index 99594b66653b..72a1a20724cf 100644
--- a/sysutils/dd_rescue/files/patch-dd_rescue.c
+++ b/sysutils/dd_rescue/files/patch-dd_rescue.c
@@ -1,6 +1,21 @@
---- 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 @@
+--- dd_rescue.c.orig Sun Jul 23 20:47:50 2006
++++ dd_rescue.c Mon Feb 12 02:53:35 2007
+@@ -213,11 +213,13 @@
+
+ void savebb( int block )
+ {
++ FILE *bbfile;
++
+ fplog(stderr, "Bad block: %d\n", block);
+
+ if( bbname == NULL )
+ return;
+- FILE *bbfile = fopen(bbname,"a");
++ bbfile = fopen(bbname,"a");
+ fprintf(bbfile,"%d\n",block);
+ fclose(bbfile);
+ }
+@@ -742,7 +744,8 @@
ipos = 0;
#ifdef O_DIRECT