Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69166 Details for
Bug 107091
webapp-config-1.11 doesn't detect nonexistant users/group
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against webapp-config 1.11
webapp-config-uidgid.patch (text/plain), 1.51 KB, created by
paul
on 2005-09-24 07:09:22 UTC
(
hide
)
Description:
patch against webapp-config 1.11
Filename:
MIME Type:
Creator:
paul
Created:
2005-09-24 07:09:22 UTC
Size:
1.51 KB
patch
obsolete
>--- /usr/sbin/webapp-config.old 2005-09-24 15:16:37.704322136 +0200 >+++ /usr/sbin/webapp-config 2005-09-24 15:53:46.948144808 +0200 >@@ -1583,16 +1583,21 @@ > > # make sure that the user and group are setup and working > # >- # using 'id' means that we can only accept usernames and >- # group names. UIDs and GIDs aren't supported by id(1) >- >- libsh_everbose libsh_einfo "Checking that the username:group '$G_CONFIG_UID:$G_CONFIG_GID' is valid" >- >- if ! $(getent passwd | grep -q "$G_CONFIG_UID" > /dev/null 2>&1) ; then >- libsh_edie "'$G_CONFIG_UID' is not a valid username" >- fi >- if ! $(getent group | grep -q "$G_CONFIG_GID" > /dev/null 2>&1) ; then >- libsh_edie "'$G_CONFIG_GID' is not a valid group name" >+ >+ # dispatch on type ;) but you can't mix names and numbers >+ if [[ "$G_CONFIG_UID" = *[^0-9]* ]];then >+ FNUM=1; >+ libsh_everbose libsh_einfo "Checking that the username:group '$G_CONFIG_UID:$G_CONFIG_GID' are valid" >+ else >+ FNUM=3; >+ libsh_everbose libsh_einfo "Checking that the uid:gid numbers '$G_CONFIG_UID:$G_CONFIG_GID' are valid" >+ fi >+ #echo $FNUM >+ if [ -z "$(getent passwd | cut -d':' -f $FNUM | grep -w "$G_CONFIG_UID")" ]; then >+ libsh_edie "'$G_CONFIG_UID' is not a valid username/user id" >+ fi >+ if [ -z "$(getent group | cut -d':' -f $FNUM | grep -w "$G_CONFIG_GID")" ]; then >+ libsh_edie "'$G_CONFIG_GID' is not a valid group name/ group id" > fi > > if [ "$( basename \"$G_INSTALLDIR\" )" = "htdocs" ] ; then
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 107091
: 69166