FreeBSD Bugzilla – Attachment 53373 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]
file.diff
file.diff (text/plain), 1020 bytes, created by
Rostislav Krasny
on 2005-05-07 14:30:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Rostislav Krasny
Created:
2005-05-07 14:30:02 UTC
Size:
1020 bytes
patch
obsolete
>--- main.c.orig Sat May 7 03:52:29 2005 >+++ /usr/src/libexec/getty/main.c Sat May 7 12:48:11 2005 >@@ -184,7 +184,7 @@ > main(int argc, char *argv[]) > { > extern char **environ; >- int first_sleep = 1, first_time = 1; >+ int first_sleep = 1; > struct rlimit limit; > int rval; > >@@ -312,24 +312,22 @@ > 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 (!(PL && PP)) { >+ int fd = -1; > >- if ((fd = open(IF, O_RDONLY)) != -1) { >- char * cp; >- >- while ((cp = getline(fd)) != NULL) { >- putf(cp); >+ if (IF) { >+ if ((fd = open(IF, O_RDONLY)) != -1) { >+ char * cp; >+ >+ while ((cp = getline(fd)) != NULL) >+ putf(cp); >+ close(fd); > } >- close(fd); > } >+ if (fd == -1 && IM && *IM) >+ putf(IM); > } >- 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