diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-30 14:03:11 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-06-30 14:03:11 -0700 |
commit | 627740906020fbf209ce9608c0aa7b0e251f5379 (patch) | |
tree | ff4e2ca252a8fc057c2056f16dd90a5a9ed798b1 /scripts/install-system | |
parent | fc7a54a4043ea56ad615d177ee4e8bec14932481 (diff) | |
download | vyatta-cfg-system-627740906020fbf209ce9608c0aa7b0e251f5379.tar.gz vyatta-cfg-system-627740906020fbf209ce9608c0aa7b0e251f5379.zip |
Handle multiple slashes in passwd
mkpasswd can generate passwd with multiple slashes that need
to be escaped.
Diffstat (limited to 'scripts/install-system')
-rwxr-xr-x | scripts/install-system | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-system b/scripts/install-system index 71233ccb..defca8fb 100755 --- a/scripts/install-system +++ b/scripts/install-system @@ -553,7 +553,7 @@ change_password() { local user=$1 local pwd read pwd - local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/':) + local epwd=$(mkpasswd -H md5 $pwd | sed 's:/:\\/:g') sed -i \ -e "/ user $user {/,/}/s/encrypted-password:.*\$/encrypted-password: \"$epwd\"/" \ |