#!/bin/sh
#
+# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+#
# Copyright (c) 2002-2004 Michael Telahun Makonnen. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
_prompt=
if [ -n "$uuid" ]; then
+ uuid=`get_nextuid $uuid`
_prompt="Uid [$uuid]: "
else
_prompt="Uid (Leave empty for default): "
trap 'stty echo; exit' 0 1 2 3 15
stty -echo
echo -n "Enter password: "
- read -r upass
+ IFS= read -r upass
echo''
echo -n "Enter password again: "
- read -r _passconfirm
+ IFS= read -r _passconfirm
echo ''
stty echo
# if user entered a blank password
Dflag=
Sflag=
readconfig="yes"
-homeprefix="/home"
+homeprefix="/var"
randompass=
fileline=
savedpwtype=
exit 1
fi
-# Overide from our conf file
+# Override from our conf file
# Quickly go through the commandline line to see if we should read
# from our configuration file. The actual parsing of the commandline
# arguments happens after we read in our configuration file (commandline
fi
fi
-# Proccess command-line options
+# Process command-line options
#
for _switch ; do
case $_switch in