FreeBSD Bugzilla – Attachment 124240 Details for
Bug 167744
[patch] adduser(8): enclose with double quotes: $_input --> "$_input"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.90 KB, created by
Norihiko Murase
on 2012-05-09 17:30:05 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Norihiko Murase
Created:
2012-05-09 17:30:05 UTC
Size:
1.90 KB
patch
obsolete
>--- adduser.orig 2011-02-18 01:51:54.000000000 +0000 >+++ adduser 2012-05-09 23:04:00.000000000 +0000 >@@ -362,7 +362,7 @@ > err "You must enter a username!" > [ -z "$fflag" ] && continue > fi >- ${PWCMD} usershow $_input > /dev/null 2>&1 >+ ${PWCMD} usershow "$_input" > /dev/null 2>&1 > if [ "$?" -eq 0 ]; then > err "User exists!" > [ -z "$fflag" ] && continue >@@ -419,7 +419,7 @@ > if [ -n "$Sflag" ]; then > ushell="$_input" > else >- _fullpath=`fullpath_from_shell $_input` >+ _fullpath=`fullpath_from_shell "$_input"` > if [ -n "$_fullpath" ]; then > ushell="$_fullpath" > else >@@ -500,7 +500,7 @@ > _input="`echo "$fileline" | cut -f2 -d:`" > fi > >- [ -n "$_input" ] && uuid=$_input >+ [ -n "$_input" ] && uuid="$_input" > uuid=`get_nextuid $uuid` > uidstart=$uuid > } >@@ -707,7 +707,7 @@ > echo -n "Use password-based authentication? [$_usepass]: " > read _input > [ -z "$_input" ] && _input=$_usepass >- case $_input in >+ case "$_input" in > [Nn][Oo]|[Nn]) > passwdtype="no" > ;; >@@ -715,7 +715,7 @@ > while : ; do > echo -n "Use an empty password? (yes/no) [$_emptypass]: " > read _input >- [ -n "$_input" ] && _emptypass=$_input >+ [ -n "$_input" ] && _emptypass="$_input" > case $_emptypass in > [Nn][Oo]|[Nn]) > echo -n "Use a random password? (yes/no) [$_random]: " >@@ -771,7 +771,7 @@ > echo -n "Lock out the account after creation? [$_disable]: " > read _input > [ -z "$_input" ] && _input=$_disable >- case $_input in >+ case "$_input" in > [Nn][Oo]|[Nn]) > disableflag= > ;; >@@ -818,7 +818,7 @@ > while : ; do > echo -n "OK? (yes/no): " > read _input >- case $_input in >+ case "$_input" in > [Nn][Oo]|[Nn]) > return 1 > ;; >@@ -1034,7 +1034,7 @@ > echo -n "Re-edit the default configuration? (yes/no): " > fi > read _input >- case $_input in >+ case "$_input" in > [Yy][Ee][Ss]|[Yy][Ee]|[Yy]) > uidstart=`get_nextuid $uidstart` > input_interactive
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 167744
: 124240