summaryrefslogtreecommitdiff
path: root/security/ssh2/files/patch-ah
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1999-02-05 06:11:36 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1999-02-05 06:11:36 +0000
commit83c6d7a174e0422ff9b57a3a35b5b194a082d938 (patch)
treed0b1646f583f6bafbe0f9b1a258af9f64c91cd8c /security/ssh2/files/patch-ah
parentProperly install and use resources. (diff)
upgrade to 2.0.12
Notes
Notes: svn path=/head/; revision=16540
Diffstat (limited to '')
-rw-r--r--security/ssh2/files/patch-ah23
1 files changed, 23 insertions, 0 deletions
diff --git a/security/ssh2/files/patch-ah b/security/ssh2/files/patch-ah
new file mode 100644
index 000000000000..61bf08524171
--- /dev/null
+++ b/security/ssh2/files/patch-ah
@@ -0,0 +1,23 @@
+--- apps/ssh/sshchsession.c.bak Mon Jan 18 13:32:24 1999
++++ apps/ssh/sshchsession.c Fri Feb 5 08:49:14 1999
+@@ -628,12 +628,20 @@
+ char buff[100], *time_string;
+
+ /* Check /etc/nologin. */
++#ifdef __FreeBSD__
++ f = fopen("/var/run/nologin", "r");
++#else
+ f = fopen("/etc/nologin", "r");
++#endif
+ if (f)
+ { /* /etc/nologin exists. Print its contents and exit. */
+ /* Print a message about /etc/nologin existing; I am getting
+ questions because of this every week. */
++#ifdef __FreeBSD__
++ ssh_warning("Logins are currently denied by /var/run/nologin:");
++#else
+ ssh_warning("Logins are currently denied by /etc/nologin:");
++#endif
+ while (fgets(buf, sizeof(buf), f))
+ fputs(buf, stderr);
+ fclose(f);