Gentoo Archives: gentoo-catalyst

From: "W. Trevor King" <wking@×××××××.us>
To: Catalyst <gentoo-catalyst@l.g.o>
Cc: "W. Trevor King" <wking@×××××××.us>
Subject: [gentoo-catalyst] [PATCH] livecdfs-update.sh: Fix '/etc/sshd' check for sshd_config tweaks
Date: Sun, 03 Mar 2013 13:01:44
Message-Id: a0100e7d5c8905c99230cac46b963718d3826f5a.1362315628.git.wking@tremily.us
1 From: "W. Trevor King" <wking@×××××××.us>
2
3 sshd_config lives in /etc/ssh, not /etc/sshd. This typo has been
4 present since the block was introduced by c06264e (Initial import of
5 Catalyst 2.0.0, 2005-04-04), so it's obviously not a widely used
6 feature ;). It might be better to just remove the block entirely.
7 ---
8 targets/support/livecdfs-update.sh | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10 mode change 100644 => 100755 targets/support/livecdfs-update.sh
11
12 diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh
13 old mode 100644
14 new mode 100755
15 index 77d694e..f4b2c45
16 --- a/targets/support/livecdfs-update.sh
17 +++ b/targets/support/livecdfs-update.sh
18 @@ -5,7 +5,7 @@ RUN_DEFAULT_FUNCS="no"
19 source /tmp/chroot-functions.sh
20
21 # Allow root logins to our CD by default
22 -if [ -e /etc/sshd/sshd_config ]
23 +if [ -e /etc/ssh/sshd_config ]
24 then
25 sed -i 's:^#PermitRootLogin\ yes:PermitRootLogin\ yes:' \
26 /etc/ssh/sshd_config
27 --
28 1.8.2.rc0.16.g20a599e

Replies