summaryrefslogtreecommitdiff
path: root/debian/openssh-client.config
blob: 6d678055fe48f299332d9021eb41f35eb5d181da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

action=$1
version=$2

# Source debconf library.
. /usr/share/debconf/confmodule
db_version 2.0

# Was ssh-keysign's setuid bit turned off using the obsolete debconf
# question? If so, turn this into a statoverride. (Ugh.)
if dpkg --compare-versions "$2" lt 1:4.1p1-2 && \
    db_get ssh/SUID_client && [ "$RET" = false ] &&
    [ -x /usr/sbin/dpkg-statoverride ] && \
    ! dpkg-statoverride --list /usr/lib/ssh-keysign && \
    ! dpkg-statoverride --list /usr/lib/openssh/ssh-keysign; then
	dpkg-statoverride --update --add root root 0755 \
		/usr/lib/openssh/ssh-keysign
fi

exit 0