/[smeserver]/rpms/e-smith-openssh/sme7/e-smith-openssh-1.12.0-disabled_false_positive.patch
ViewVC logotype

Contents of /rpms/e-smith-openssh/sme7/e-smith-openssh-1.12.0-disabled_false_positive.patch

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


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:49:47 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin mezzanine_patched_e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin
2 --- e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin 2006-03-14 12:15:45.000000000 -0500
3 +++ mezzanine_patched_e-smith-openssh-1.12.0/root/etc/e-smith/templates/etc/ssh/sshd_config/40PermitRootLogin 2007-10-23 12:21:17.000000000 -0400
4 @@ -1,5 +1,7 @@
5 {
6 my $PermitRootLogin = $sshd{'PermitRootLogin'} || "no";
7 - $OUT = "PermitRootLogin ";
8 + my $status = $sshd{'status'} || 'disabled';
9 + $OUT .= "# sshd is currently disabled\n# " unless $status eq "enabled";
10 + $OUT .= "PermitRootLogin ";
11 $OUT .= ($PermitRootLogin eq "yes") ? "yes" : "no";
12 }

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