Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107091 - webapp-config-1.11 doesn't detect nonexistant users/group
Summary: webapp-config-1.11 doesn't detect nonexistant users/group
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 07:07 UTC by paul
Modified: 2005-12-05 07:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch against webapp-config 1.11 (webapp-config-uidgid.patch,1.51 KB, patch)
2005-09-24 07:09 UTC, paul
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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