summaryrefslogtreecommitdiff
path: root/debian/openssh-client.config
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-client.config')
-rw-r--r--debian/openssh-client.config26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/openssh-client.config b/debian/openssh-client.config
new file mode 100644
index 000000000..736e464ed
--- /dev/null
+++ b/debian/openssh-client.config
@@ -0,0 +1,26 @@
1#!/bin/sh
2
3action=$1
4version=$2
5
6# Source debconf library.
7. /usr/share/debconf/confmodule
8db_version 2.0
9
10if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then
11 version=1.2.27
12 cp -a /etc/ssh-nonfree /etc/ssh
13fi
14
15# Was ssh-keysign's setuid bit turned off using the obsolete debconf
16# question? If so, turn this into a statoverride. (Ugh.)
17if dpkg --compare-versions "$2" lt 1:4.1p1-2 && \
18 db_get ssh/SUID_client && [ "$RET" = false ] &&
19 [ -x /usr/sbin/dpkg-statoverride ] && \
20 ! dpkg-statoverride --list /usr/lib/ssh-keysign && \
21 ! dpkg-statoverride --list /usr/lib/openssh/ssh-keysign; then
22 dpkg-statoverride --update --add root root 0755 \
23 /usr/lib/openssh/ssh-keysign
24fi
25
26exit 0