summaryrefslogtreecommitdiffstats
path: root/sysutils/mkisofs/files
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-04-28 11:30:52 +0000
committerjoerg <joerg@FreeBSD.org>1997-04-28 11:30:52 +0000
commit03d0f345f3bfc59e4835c89b91aadb0a509234d5 (patch)
tree0f12b4974fa0d1a9cdb231276e4e1f9784e9a0c0 /sysutils/mkisofs/files
parent108dfbc2b0c818727a9c8000c55a15d529af27f5 (diff)
downloadFreeBSD-ports-03d0f345f3bfc59e4835c89b91aadb0a509234d5.zip
FreeBSD-ports-03d0f345f3bfc59e4835c89b91aadb0a509234d5.tar.gz
After being able to reproduce and fix the coredumps i've got with this
version, now finally upgrade to mkisofs 1.10. PR: ports/3143 Submitted by: partially by Brian Handy <handy@lambic.space.lockheed.com>
Diffstat (limited to 'sysutils/mkisofs/files')
-rw-r--r--sysutils/mkisofs/files/patch-ac30
1 files changed, 30 insertions, 0 deletions
diff --git a/sysutils/mkisofs/files/patch-ac b/sysutils/mkisofs/files/patch-ac
new file mode 100644
index 0000000..fe95846
--- /dev/null
+++ b/sysutils/mkisofs/files/patch-ac
@@ -0,0 +1,30 @@
+--- name.c.orig Sat Mar 15 04:02:46 1997
++++ name.c Mon Apr 28 11:50:47 1997
+@@ -57,6 +57,7 @@
+ const char * pnt;
+ int priority = 32767;
+ char * result;
++ char * copy;
+ int seen_dot = 0;
+ int seen_semic = 0;
+ int tildes = 0;
+@@ -104,12 +105,17 @@
+ last_dot = strrchr (pnt,'.');
+ if( (last_dot != NULL)
+ && ( (last_dot[1] == '~')
+- || (last_dot[1] == '\0')
+ || (last_dot[1] == '\0')) )
+ {
++ /*
++ * We gotta copy the string first, to work around its constness.
++ */
++ copy = alloca (strlen(name) + 1);
++ memcpy (copy, name, strlen(name) + 1);
++ pnt = copy;
++ last_dot = strrchr (pnt,'.');
+ *last_dot = '\0';
+ last_dot = strrchr (pnt,'.');
+- *last_dot = '.';
+ }
+
+ while(*pnt)
OpenPOWER on IntegriCloud