/[smeserver]/rpms/e-smith-openssh/sme8/e-smith-openssh-2.2.0-ssh_printmotd.bz8972.patch
ViewVC logotype

Contents of /rpms/e-smith-openssh/sme8/e-smith-openssh-2.2.0-ssh_printmotd.bz8972.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Jul 3 20:13:42 2015 UTC (9 years, 4 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-openssh-2_2_0-8_el5_sme, HEAD
Error occurred while calculating annotation data.
* Fri Jul 3 2015 stephane de labrusse <stephdl@de-labrusse.fr> 2.2.0-8.sme
- enabled the motd message [SME: 8972]
- Code done by John Crisp <jcrisp@safeandsoundit.co.uk> and
- Stefano Zamboni <zamboni@mind-at-work.it>

1 diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus
2 --- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 1970-01-01 01:00:00.000000000 +0100
3 +++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/db/configuration/defaults/sshd/MotdStatus 2015-06-25 19:04:29.320484394 +0200
4 @@ -0,0 +1 @@
5 +enabled
6 diff -Nur e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd
7 --- e-smith-openssh-2.4.0.bz.8939.old/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:33:53.112340974 +0200
8 +++ e-smith-openssh-2.4.0.bz.8939/root/etc/e-smith/templates/etc/ssh/sshd_config/60PrintMotd 2015-06-25 18:35:25.276957426 +0200
9 @@ -1 +1,13 @@
10 -PrintMotd no
11 +{
12 +my $MotdStatus = $sshd{'MotdStatus'} || 'enabled';
13 +
14 +if ( $MotdStatus eq 'disabled' )
15 + {
16 + $OUT .= "PrintMotd no\n";
17 + }
18 +
19 +else
20 + {
21 + $OUT .= "PrintMotd yes\n";
22 + }
23 +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed