FreeBSD Bugzilla – Attachment 53378 Details for
Bug 80732
[patch] getty(8) and telnetd(8) ignore the 'if' option of gettytab(5) and don't print initial message from a file (by default /etc/issue) before the login prompt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
main.c.diff
main.c.diff (text/plain), 852 bytes, created by
Rostislav Krasny
on 2005-06-08 05:05:23 UTC
(
hide
)
Description:
main.c.diff
Filename:
MIME Type:
Creator:
Rostislav Krasny
Created:
2005-06-08 05:05:23 UTC
Size:
852 bytes
patch
obsolete
>--- main.c.orig Mon Jun 6 09:16:37 2005 >+++ main.c Mon Jun 6 09:21:45 2005 >@@ -312,24 +312,23 @@ > putpad(CL); > edithost(HE); > >- /* if this is the first time through this, and an >- issue file has been given, then send it */ >- if (first_time && IF) { >- int fd; >+ if (first_time && !(PL && PP)) { >+ int fd = -1; > >- if ((fd = open(IF, O_RDONLY)) != -1) { >- char * cp; >+ if (IF) { >+ if ((fd = open(IF, O_RDONLY)) != -1) { >+ char * cp; > >- while ((cp = getline(fd)) != NULL) { >- putf(cp); >+ while ((cp = getline(fd)) != NULL) >+ putf(cp); >+ close(fd); > } >- close(fd); > } >+ if (fd == -1 && IM && *IM) >+ putf(IM); >+ first_time = 0; > } >- first_time = 0; > >- if (IM && *IM && !(PL && PP)) >- putf(IM); > if (setjmp(timeout)) { > cfsetispeed(&tmode, B0); > cfsetospeed(&tmode, B0);
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 80732
:
53373
|
53374
|
53375
|
53376
|
53377
| 53378