Commit bb9d21d0 authored by Simone Piccardi's avatar Simone Piccardi
Browse files

Better control on problematic chars in the password

parent ebf6e31c
fuss-server (7.0.14) wheezy; urgency=medium
* added control to avoid some chars in the password (interference with sed expressions)
-- Simone Piccardi <piccardi@truelite.it> Wed, 16 Jul 2014 14:54:54 +0200
fuss-server (7.0.13) wheezy; urgency=medium
* better handling of configuration after a purge/create cycle
......
......@@ -130,8 +130,8 @@ case "$1" in
. "$CONF_FILE"
fi
# check for "prolematic" chars
if echo $MASTER_PASS | grep '/' > /dev/null; then
echo "do not use '/' char in master password"
if echo $MASTER_PASS | egrep '(/|\&|\\)' > /dev/null; then
echo "char '/', '\' and '&' not allowes in master password"
resetconf MASTER_PASS
$CONF_CMD
. "$CONF_FILE"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment