diff options
author | cy <cy@FreeBSD.org> | 2008-06-10 15:23:27 +0800 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2008-06-10 15:23:27 +0800 |
commit | d3a37eec3b72f3db8ae7626b02405ae32999db23 (patch) | |
tree | 80f42a238d47e9112ae6ac4e8a61b3c22fc1cdd2 /sysutils | |
parent | 1b28cd46f31094c4e72fdc24ea505d7d34e601cd (diff) | |
download | freebsd-ports-gnome-d3a37eec3b72f3db8ae7626b02405ae32999db23.tar.gz freebsd-ports-gnome-d3a37eec3b72f3db8ae7626b02405ae32999db23.tar.zst freebsd-ports-gnome-d3a37eec3b72f3db8ae7626b02405ae32999db23.zip |
Add optional patch to include hostname in screen's "locked" message.
PR: 122718
Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/screen/files/opt-hostinlocked | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sysutils/screen/files/opt-hostinlocked b/sysutils/screen/files/opt-hostinlocked new file mode 100644 index 000000000000..ee3b31f23534 --- /dev/null +++ b/sysutils/screen/files/opt-hostinlocked @@ -0,0 +1,21 @@ +--- 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 (;;) |