FreeBSD Bugzilla – Attachment 245606 Details for
Bug 274454
usr.sbin/syslogd: closing a configured terminal in parse_action(), line 3057
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for usr.sbin/syslogd/syslogd.c disabling closing of a terminal.
usr.sbin_syslogd_syslogd.c.VTY.diff (text/plain), 727 bytes, created by
Trond Endrestøl
on 2023-10-13 19:34:05 UTC
(
hide
)
Description:
Patch for usr.sbin/syslogd/syslogd.c disabling closing of a terminal.
Filename:
MIME Type:
Creator:
Trond Endrestøl
Created:
2023-10-13 19:34:05 UTC
Size:
727 bytes
patch
obsolete
>diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c >index 7db5bab11008..574e7f0c90c7 100644 >--- a/usr.sbin/syslogd/syslogd.c >+++ b/usr.sbin/syslogd/syslogd.c >@@ -3054,8 +3054,8 @@ parse_action(const char *p, struct filed *f) > (void)strlcpy(f->fu_fname, p + sizeof(_PATH_DEV) - 1, > sizeof(f->fu_fname)); > /* This will be reopened by ttymsg(). */ >- close(f->f_file); >- f->f_file = -1; >+ //close(f->f_file); // Do not close the file in case it is a VTY. It would otherwise make the VTY inaccessible and useless to the user. >+ //f->f_file = -1; // Do not lose the file descriptor. See the above line. > } else { > (void)strlcpy(f->fu_fname, p, sizeof(f->fu_fname)); > f->f_type = F_FILE;
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 274454
:
245605
| 245606