Incorrect Include path in /etc/libssh/libssh_{client,server}.config
Hi, In openSUSE Tumbleweed the current default path for openssh configs is;
/usr/etc/ssh/ssh{d}_config
In the packaged libssh (version 0.10.5) the configuration uses;
/etc/libssh/libssh_{client,server}.config containing;
Include /etc/ssh/ssh_config
Which should, after the openSUSE Tumbleweed UsrEtc merge be modified to to contain;
Include /usr/etc/ssh/ssh_config
I have submitted a simple fix in the spec file for the packaged rpm as follows;
%if 0%{?suse_version} > 1600
sed -i '/^Include/ s|/etc|/usr/etc|' %{buildroot}%{_sysconfdir}/libssh/libssh_client.config
sed -i '/^Include/ s|/etc|/usr/etc|' %{buildroot}%{_sysconfdir}/libssh/libssh_server.config
%endif
Please consider this for inclusion in libssh to enhance the move to a read-only root filesystem.
Downstream Ref: https://bugzilla.opensuse.org/show_bug.cgi?id=1211718
UsrEtc Merge Ref: https://en.opensuse.org/openSUSE:Packaging_UsrEtc
Edited by Malcolm Lewis