aboutsummaryrefslogtreecommitdiff
path: root/converters/uulib
diff options
context:
space:
mode:
authorTim Vanderhoek <hoek@FreeBSD.org>2002-09-02 03:47:53 +0000
committerTim Vanderhoek <hoek@FreeBSD.org>2002-09-02 03:47:53 +0000
commit3df30cd731148e39539ab40f51fb13a03e765ddf (patch)
tree467f8d11f3fced3d5d029ff4c4eaf229f61f9868 /converters/uulib
parent64c8e317daeefa8cdf47de73c5a5653b1f02a929 (diff)
downloadports-3df30cd731148e39539ab40f51fb13a03e765ddf.tar.gz
ports-3df30cd731148e39539ab40f51fb13a03e765ddf.zip
Notes
Diffstat (limited to 'converters/uulib')
-rw-r--r--converters/uulib/files/patch-ac24
-rw-r--r--converters/uulib/files/patch-ad21
2 files changed, 45 insertions, 0 deletions
diff --git a/converters/uulib/files/patch-ac b/converters/uulib/files/patch-ac
new file mode 100644
index 000000000000..fa87ecd7addc
--- /dev/null
+++ b/converters/uulib/files/patch-ac
@@ -0,0 +1,24 @@
+--- ../../orig/uudeview-0.5.18/uulib/fptools.c Wed Jun 6 14:21:47 2001
++++ uulib/fptools.c Sun Sep 1 21:57:16 2002
+@@ -507,5 +507,20 @@
+ char * TOOLEXPORT
+ _FP_tempnam (char *dir, char *pfx)
+ {
+- return _FP_strdup (tmpnam (NULL));
++ /* TODO: should make this patch acceptable for fitting back
++ * into the standard uudeview distribution (rather than the
++ * hack that it is now). */
++
++ char *fname;
++ int fd;
++
++ if ((fname = _FP_strdup ("/tmp/uuXXXXXXX")) != NULL) {
++ if ((fd = mkstemp (fname)) != -1) {
++ close (fd);
++ return fname;
++ } else {
++ _FP_free (fname);
++ }
++ }
++ return NULL;
+ }
diff --git a/converters/uulib/files/patch-ad b/converters/uulib/files/patch-ad
new file mode 100644
index 000000000000..612e01e24a90
--- /dev/null
+++ b/converters/uulib/files/patch-ad
@@ -0,0 +1,21 @@
+diff -r -u ../../orig/uudeview-0.5.18/uulib/uunconc.c uulib/uunconc.c
+--- ../../orig/uudeview-0.5.18/uulib/uunconc.c Tue Apr 2 05:04:52 2002
++++ uulib/uunconc.c Sun Sep 1 21:27:01 2002
+@@ -1264,7 +1264,7 @@
+ else
+ mode = "wb"; /* otherwise in binary */
+
+- if ((data->binfile = tempnam (NULL, "uu")) == NULL) {
++ if ((data->binfile = _FP_tempnam (NULL, "uu")) == NULL) {
+ UUMessage (uunconc_id, __LINE__, UUMSG_ERROR,
+ uustring (S_NO_TEMP_NAME));
+ return UURET_NOMEM;
+@@ -1426,7 +1426,7 @@
+ */
+
+ if (data->uudet == BH_ENCODED && data->binfile) {
+- if ((ntmp = tempnam (NULL, "uu")) == NULL) {
++ if ((ntmp = _FP_tempnam (NULL, "uu")) == NULL) {
+ UUMessage (uunconc_id, __LINE__, UUMSG_ERROR,
+ uustring (S_NO_TEMP_NAME));
+ progress.action = 0;