FreeBSD Bugzilla – Attachment 9275 Details for
Bug 19047
net/arpwatch patched to use tmpfile() instead of mktemp()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 652 bytes, created by
Mikhail Teterin
on 2000-06-06 00:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mikhail Teterin
Created:
2000-06-06 00:30:01 UTC
Size:
652 bytes
patch
obsolete
>--- report.c Wed Jul 29 01:16:46 1998 >+++ report.c Mon Jun 5 19:06:31 2000 >@@ -242,5 +242,5 @@ > register int pid; > register FILE *f; >- char tempfile[64], cpu[64], os[64]; >+ char cpu[64], os[64]; > char *fmt = "%20s: %s\n"; > char *watcher = WATCHER; >@@ -286,12 +286,8 @@ > /* Child */ > closelog(); >- (void)strcpy(tempfile, "/tmp/arpwatch.XXXXXX"); >- (void)mktemp(tempfile); >- if ((f = fopen(tempfile, "w+")) == NULL) { >- syslog(LOG_ERR, "child open(%s): %m", tempfile); >+ if ((f = tmpfile()) == NULL) { >+ syslog(LOG_ERR, "tmpfile(): %m"); > exit(1); > } >- if (unlink(tempfile) < 0) >- syslog(LOG_ERR, "unlink(%s): %m", tempfile); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19047
: 9275