summaryrefslogtreecommitdiff
path: root/debian/openssh-server.preinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-03-22 12:35:46 +0000
committerColin Watson <cjwatson@debian.org>2008-03-22 12:35:46 +0000
commit64039657105c48c475c621684a8d09abcdd5dbf6 (patch)
tree1f6e926ecd577ec4690bf349aa39d4ebfdcf6160 /debian/openssh-server.preinst
parent1fd4eb3d0025d544928da833ad1d171bbc785149 (diff)
* Use printf rather than echo -en (a bashism) in openssh-server.config and
openssh-server.preinst.
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r--debian/openssh-server.preinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst
index 4ca7f2f6e..e6c150ba5 100644
--- a/debian/openssh-server.preinst
+++ b/debian/openssh-server.preinst
@@ -112,7 +112,7 @@ EOF
112 # nonfree ssh-keygen at this point 112 # nonfree ssh-keygen at this point
113 # 113 #
114 # First, check if we need to bother 114 # First, check if we need to bother
115 echo -en '\0\0' | 3<&0 sh -c \ 115 printf '\0\0' | 3<&0 sh -c \
116 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || { 116 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || {
117 # this means that bytes 32&33 of the key were not both zero, in which 117 # this means that bytes 32&33 of the key were not both zero, in which
118 # case the key is encrypted, which we need to fix 118 # case the key is encrypted, which we need to fix