FreeBSD Bugzilla – Attachment 18558 Details for
Bug 33314
[patch] ports/mail/smtpd: smtpfwdd causes sendmail 8.12.1 to complain about missing file descriptors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 669 bytes, created by
marius
on 2001-12-30 00:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
marius
Created:
2001-12-30 00:40:01 UTC
Size:
669 bytes
patch
obsolete
>--- smtpfwdd.c.orig Wed Dec 26 16:29:37 2001 >+++ smtpfwdd.c Sun Dec 30 00:09:19 2001 >@@ -636,6 +636,19 @@ > exit(EX_OSERR); > } > >+ /* >+ * Open /dev/null as stdout and as stderr so sendmail 8.12.1 (and >+ * above ?) won't complain about missing file descriptors. >+ */ >+ if (open ("/dev/null", O_WRONLY | O_APPEND) < 0) { >+ syslog(LOG_ERR, "Couldn't open /dev/null as stdout (%m)"); >+ exit (EX_OSERR); >+ } >+ if (open ("/dev/null", O_RDWR | O_APPEND) < 0) { >+ syslog(LOG_ERR, "Couldn't open /dev/null as stderr (%m)"); >+ exit (EX_OSERR); >+ } >+ > fclose(f); > closelog(); > if (lseek(0, body, SEEK_SET) < 0) {
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 33314
: 18558