OpenELEC/OpenELEC.tv — Issue #263: Setting user or root password starting with "-" fails
Author: jsloth
Created: 2012-03-01 18:21:49+00:00
State: open

/home/jsloth/src/OpenELEC.tv/build.OpenELEC-ION.x86_64-devel/toolchain/bin/cryptpw: invalid option -- 'C'
BusyBox v1.19.4 (2012-03-01 18:57:05 CET) multi-call binary.

Usage: cryptpw [OPTIONS] [PASSWORD] [SALT]

Crypt PASSWORD using crypt(3)

-P N	Read password from fd N
-m TYPE	Encryption method TYPE
-S SALT

make: *** [release] Error 1

suggest changeing

ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $ROOT_PASSWORD`"
USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"

to
ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 -- $ROOT_PASSWORD`"
USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 -- $USER_PASSWORD`"

in packages/sysutils/busybox/install