summaryrefslogtreecommitdiff
path: root/scripts/standalone_root_pw_reset
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-09-25 11:34:43 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-09-25 11:34:43 -0700
commit8397f27caa34ab83a9e4546a10800cffea4397f2 (patch)
treee1f2ceabeb32cea09a8678f8518b46777da31727 /scripts/standalone_root_pw_reset
parent5b12b1bc33ccafdbfafdafe71740ccb9e8977cc0 (diff)
downloadvyatta-cfg-quagga-8397f27caa34ab83a9e4546a10800cffea4397f2.tar.gz
vyatta-cfg-quagga-8397f27caa34ab83a9e4546a10800cffea4397f2.zip
Bugfix: 3515
Accept an encrypted-password field with or without a trailing colon character.
Diffstat (limited to 'scripts/standalone_root_pw_reset')
-rwxr-xr-xscripts/standalone_root_pw_reset2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/standalone_root_pw_reset b/scripts/standalone_root_pw_reset
index 336d534d..65af7e55 100755
--- a/scripts/standalone_root_pw_reset
+++ b/scripts/standalone_root_pw_reset
@@ -76,7 +76,7 @@ usermod --password "$newpwd" root
# escape / in encrypted passwd
pw=$(echo $newpwd | sed 's:/:\\/:g')
sed -i \
- -e "/^.* user root {/,/}/s/encrypted-password .*\$/encrypted-password \"$pw\"/" \
+ -e "/^.* user root {/,/}/s/encrypted-password:* .*\$/encrypted-password \"$pw\"/" \
$CF
echo $(date "+%b%e %T") $(hostname) "Root password reset to factory value" \