From 0d721c63cd02fc75df8579f76344ed63dd27b5f3 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 26 Apr 2010 23:38:48 +0100 Subject: Discard error messages while checking whether rsh, rlogin, and rcp alternatives exist (closes: #579285). --- debian/changelog | 7 +++++++ debian/openssh-client.postinst | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index ffc232489..ec6547a36 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +openssh (1:5.5p1-3) UNRELEASED; urgency=low + + * Discard error messages while checking whether rsh, rlogin, and rcp + alternatives exist (closes: #579285). + + -- Colin Watson Mon, 26 Apr 2010 23:37:41 +0100 + openssh (1:5.5p1-2) unstable; urgency=low * Use dh_installinit -n, since our maintainer scripts already handle this diff --git a/debian/openssh-client.postinst b/debian/openssh-client.postinst index 3e33aeb82..cff282d70 100644 --- a/debian/openssh-client.postinst +++ b/debian/openssh-client.postinst @@ -42,7 +42,7 @@ create_alternatives() { update-alternatives --quiet --remove rcp /usr/bin/ssh for cmd in rsh rlogin rcp; do scmd="s${cmd#r}" - if ! update-alternatives --display "$cmd" | \ + if ! update-alternatives --display "$cmd" 2>/dev/null | \ grep -q "$scmd"; then update-alternatives --quiet --install "/usr/bin/$cmd" "$cmd" "/usr/bin/$scmd" 20 \ --slave "/usr/share/man/man1/$cmd.1.gz" "$cmd.1.gz" "/usr/share/man/man1/$scmd.1.gz" -- cgit v1.2.3