Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 107091

Summary: webapp-config-1.11 doesn't detect nonexistant users/group
Product: Gentoo Linux Reporter: paul <paul>
Component: Current packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch against webapp-config 1.11

Description paul 2005-09-24 07:07:56 UTC
Hmm, it seems webapp-config doesn't detect invalid groupnames if -p is given
the relevant line (1594) in webapp-config reads: if ! $(getent group | grep -q
"$G_CONGIG_GID" > /dev/null 2>&1);then "blala not valid"
but "getent groups | grep -q $whatever > /dev/null 2>&1" always evaluates to ""
(nothing) regardless if the name is valid or not.
and if you leave -p out, chown chokes during install.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




the attached patch resolves this issue and allows for numeric uid/gid. I don't
know if it's portable though.
Comment 1 paul 2005-09-24 07:09:22 UTC
Created attachment 69166 [details, diff]
patch against webapp-config 1.11
Comment 2 Renat Lumpau (RETIRED) gentoo-dev 2005-12-05 07:28:25 UTC
w-c-1.50.2 should address this issue, please test and reopen if necessary