diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2000-09-23 01:36:53 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2000-09-23 01:36:53 +0000 |
commit | 8c7499bdfa85657ea6c2517ada0ef4a4db489beb (patch) | |
tree | 1c37a6088704b234484b1352cd1f882fb2a253ad /print/ghostscript7/files/patch-ad | |
parent | Catch up with Wnn6-lib update. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_1_1'.release/4.1.1
Diffstat (limited to 'print/ghostscript7/files/patch-ad')
-rw-r--r-- | print/ghostscript7/files/patch-ad | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/print/ghostscript7/files/patch-ad b/print/ghostscript7/files/patch-ad deleted file mode 100644 index 9688a7b217ff..000000000000 --- a/print/ghostscript7/files/patch-ad +++ /dev/null @@ -1,34 +0,0 @@ ---- gp_unifs.c.orig Mon Feb 14 11:28:25 2000 -+++ gp_unifs.c Fri Jul 28 23:53:04 2000 -@@ -33,6 +33,7 @@ - #include "stat_.h" - #include "dirent_.h" - #include <sys/param.h> /* for MAXPATHLEN */ -+#include <unistd.h> - - /* Some systems (Interactive for example) don't define MAXPATHLEN, - * so we define it here. (This probably should be done via a Config-Script.) -@@ -63,6 +64,8 @@ - const char *mode) - { /* The -8 is for XXXXXX plus a possible final / and -. */ - int len = gp_file_name_sizeof - strlen(prefix) - 8; -+ int fd; -+ FILE *f; - - if (gp_getenv("TEMP", fname, &len) != 0) - strcpy(fname, "/tmp/"); -@@ -75,8 +78,12 @@ - if (*fname != 0 && fname[strlen(fname) - 1] == 'X') - strcat(fname, "-"); - strcat(fname, "XXXXXX"); -- mktemp(fname); -- return fopen(fname, mode); -+ fd = mkstemp(fname); -+ if (fd == -1) -+ return NULL; -+ if ((f = fdopen(fd, mode)) == NULL) -+ close(fd); -+ return f; - } - - /* Open a file with the given name, as a stream of uninterpreted bytes. */ |