]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test74: create ssh empty dir all at the same place
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 14:10:56 +0000 (15:10 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 21:24:32 +0000 (22:24 +0100)
A follow up for 8fddb50fd4de43993c4906baf19dae89ff8a021b, which mirrors
the change also in test 74.

test/units/testsuite-74.ssh.sh

index 3372ec0b068c813acf1cb769393f225b042224ba..70fb9ce56cace70b71ff89144c45ce3bec82d865 100755 (executable)
@@ -24,8 +24,6 @@ if [[ -v ASAN_OPTIONS ]] ; then
 fi
 
 ROOTID=$(mktemp -u)
-# Needed on Ubuntu/Debian as we copy binaries manually
-mkdir -p /run/sshd
 
 removesshid() {
     rm -f "$ROOTID" "$ROOTID".pub
@@ -49,7 +47,7 @@ echo "LogLevel DEBUG3" >> /etc/ssh/sshd_config
 test -f /etc/ssh/ssh_config || echo 'Include /etc/ssh/ssh_config.d/*.conf' > /etc/ssh/ssh_config
 
 # ssh wants this dir around, but distros cannot agree on a common name for it, let's just create all that are aware of distros use
-mkdir -p /usr/share/empty.sshd /var/empty /var/empty/sshd
+mkdir -p /usr/share/empty.sshd /var/empty /var/empty/sshd /run/sshd
 
 ssh -o StrictHostKeyChecking=no -v -i "$ROOTID" .host cat /etc/machine-id | cmp - /etc/machine-id
 ssh -o StrictHostKeyChecking=no -v -i "$ROOTID" unix/run/ssh-unix-local/socket cat /etc/machine-id | cmp - /etc/machine-id