X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsecurity%2Fpassword_functions.sh;h=490b94d8189c20b03340cecf5c4556761dab1249;hb=e7bfe77ca8ebc6a20405a29a3191846f2b71e90c;hp=f1e0df135dceed04c85de9fd116385e7bb7f2a6f;hpb=1e4b71c65c6a4e73fbe4d12fb1b8aabcd447df57;p=feisty_meow.git diff --git a/scripts/security/password_functions.sh b/scripts/security/password_functions.sh index f1e0df13..490b94d8 100644 --- a/scripts/security/password_functions.sh +++ b/scripts/security/password_functions.sh @@ -46,13 +46,13 @@ and (2) the password that should be stored. fi echo "$passwd" > "$passfile" - test_or_die "writing password into the file $passfile" + exit_on_error "writing password into the file $passfile" chown root:root "$passfile" - test_or_die "chowning the password file to root ownership for: $passfile" + exit_on_error "chowning the password file to root ownership for: $passfile" chmod 600 "$passfile" - test_or_die "restricting permissions on password file for: $passfile" + exit_on_error "restricting permissions on password file for: $passfile" } # reads a password from the console, without echoing the letters when they