package/dropbear: fix when readlink is from busybox
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 18 Aug 2015 19:25:53 +0000 (21:25 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 24 Aug 2015 15:06:06 +0000 (17:06 +0200)
commit29a0f0557984ccb299426712b71fee5abaaa2ca9
treef5e6670ec6113835fc8105b447bfc5b46c024133
parent7deaa277fd4c89c67de39ea21b4cd081ab85366f
package/dropbear: fix when readlink is from busybox

Busybox "readlink -f" does not canonicalise paths when the target is
missing, while coreutils do.

Fix that by:
  - making an absolute symlink
  - dropping "-f" when calling readlink

Fixes #8276.

Reported-by: Jason Tang <tang@jtang.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Jason Tang <tang@jtang.org>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dropbear/S50dropbear
package/dropbear/dropbear.mk
package/dropbear/dropbear.service