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 /net-mgmt/arpwatch-devel/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 'net-mgmt/arpwatch-devel/files/patch-ad')
-rw-r--r-- | net-mgmt/arpwatch-devel/files/patch-ad | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/net-mgmt/arpwatch-devel/files/patch-ad b/net-mgmt/arpwatch-devel/files/patch-ad deleted file mode 100644 index 02096d9d63bf..000000000000 --- a/net-mgmt/arpwatch-devel/files/patch-ad +++ /dev/null @@ -1,29 +0,0 @@ ---- report.c.orig Fri Jun 9 09:54:48 2000 -+++ report.c Fri Jun 9 10:05:58 2000 -@@ -249,6 +249,9 @@ - char *unknown = "<unknown>"; - char buf[132]; - static int init = 0; -+#ifdef HAVE_MKSTEMP -+ int fd; -+#endif - - /* No report until we're initialized */ - if (initializing) -@@ -286,8 +289,16 @@ - /* Child */ - closelog(); - (void)strcpy(tempfile, "/tmp/arpwatch.XXXXXX"); -+#ifndef HAVE_MKSTEMP - (void)mktemp(tempfile); - if ((f = fopen(tempfile, "w+")) == NULL) { -+#else -+ if ((fd = mkstemp(tempfile)) == -1) { -+ syslog(LOG_ERR, "child mkstemp(%s): %m", tempfile); -+ exit(1); -+ } -+ if ((f = fdopen(fd, "w+")) == NULL) { -+#endif /* HAVE_MKSTEMP */ - syslog(LOG_ERR, "child open(%s): %m", tempfile); - exit(1); - } |