summaryrefslogtreecommitdiff
path: root/graphics/xfig/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xfig/patches/patch-ac')
-rw-r--r--graphics/xfig/patches/patch-ac24
1 files changed, 21 insertions, 3 deletions
diff --git a/graphics/xfig/patches/patch-ac b/graphics/xfig/patches/patch-ac
index 3ed871c99e1..b4e4a18d589 100644
--- a/graphics/xfig/patches/patch-ac
+++ b/graphics/xfig/patches/patch-ac
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.5 2005/11/12 16:08:21 itohy Exp $
+$NetBSD: patch-ac,v 1.6 2006/11/16 02:28:58 markd Exp $
---- f_util.c.orig Wed Jan 7 04:46:08 2004
-+++ f_util.c Sat Nov 12 14:16:03 2005
+--- f_util.c.orig 2004-01-07 08:46:08.000000000 +1300
++++ f_util.c
@@ -111,15 +111,15 @@ change_directory(path)
get_directory(direct)
char *direct;
@@ -30,3 +30,21 @@ $NetBSD: patch-ac,v 1.5 2005/11/12 16:08:21 itohy Exp $
*direct = '\0';
return 0;
}
+@@ -782,7 +782,7 @@ uncompress_file(name)
+ else strcpy(dirname, ".");
+
+ if (access(dirname, W_OK) == 0) { /* OK - the directory is writable */
+- sprintf(unc, "gunzip -q %s", name);
++ sprintf(unc, "gunzip -q -- %s", name);
+ if (system(unc) != 0)
+ file_msg("Couldn't uncompress the file: \"%s\"", unc);
+ strcpy(name, plainname);
+@@ -793,7 +793,7 @@ uncompress_file(name)
+ sprintf(tmpfile, "%s%s", TMPDIR, c);
+ else
+ sprintf(tmpfile, "%s/%s", TMPDIR, plainname);
+- sprintf(unc, "gunzip -q -c %s > %s", name, tmpfile);
++ sprintf(unc, "gunzip -q -c -- %s > %s", name, tmpfile);
+ if (system(unc) != 0)
+ file_msg("Couldn't uncompress the file: \"%s\"", unc);
+ file_msg ("Uncompressing file %s in %s because it is in a read-only directory",