Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81890195
D40157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40157.diff
View Options
diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh
--- a/usr.sbin/adduser/adduser.sh
+++ b/usr.sbin/adduser/adduser.sh
@@ -657,6 +657,8 @@
_usepass="yes"
_logingroup_ok="no"
_groups_ok="no"
+ _all_ok="yes"
+ _another_user="no"
case $passwdtype in
none)
_emptypass="yes"
@@ -817,8 +819,11 @@
printf "%-10s : %s\n" "Shell" "$ushell"
printf "%-10s : %s\n" "Locked" "$_disable"
while : ; do
- echo -n "OK? (yes/no): "
+ echo -n "OK? (yes/no) [$_all_ok]: "
read _input
+ if [ -z "$_input" ]; then
+ _input=$_all_ok
+ fi
case $_input in
[Nn][Oo]|[Nn])
return 1
@@ -1030,11 +1035,14 @@
input_interactive
while : ; do
if [ -z "$configflag" ]; then
- echo -n "Add another user? (yes/no): "
+ echo -n "Add another user? (yes/no) [$_another_user]: "
else
- echo -n "Re-edit the default configuration? (yes/no): "
+ echo -n "Re-edit the default configuration? (yes/no) [$_another_user]: "
fi
read _input
+ if [ -z "$_input" ]; then
+ _input=$_another_user
+ fi
case $_input in
[Yy][Ee][Ss]|[Yy][Ee]|[Yy])
uidstart=`get_nextuid $uidstart`
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 11:03 PM (21 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9053650
Default Alt Text
D40157.diff (1 KB)
Attached To
Mode
D40157: add defaults for adduser.sh (OK? [yes] & additional user [no])
Attached
Detach File
Event Timeline
Log In to Comment