freebsd-ports/sysutils/screen/files/opt-hostinlocked
Cy Schubert e5852451af Add optional patch to include hostname in screen's "locked" message.
PR:		122718
Submitted by:	Valentin Nechayev <netch@netch.kiev.ua>
2008-06-10 07:23:27 +00:00

21 lines
548 B
Text

--- attacher.c Sun Oct 2 10:29:36 2005
+++ attacher.c Sun Oct 2 10:30:18 2005
@@ -809,6 +809,7 @@
#else
char *pass, mypass[16 + 1], salt[3];
#endif
+ extern char HostName[];
#ifndef USE_PAM
pass = ppp->pw_passwd;
@@ -859,8 +860,8 @@
*cp1 -= 'a' - 'A';
}
- sprintf(message, "Screen used by %s <%s>.\nPassword:\007",
- fullname, ppp->pw_name);
+ sprintf(message, "Screen used by %s <%s@%s>.\nPassword:\007",
+ fullname, ppp->pw_name, HostName);
/* loop here to wait for correct password */
for (;;)