| Summary: | Fixed rc script for mail/dovecot port | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Alex Trull <alex> | ||||
| Component: | Individual Port(s) | Assignee: | Wesley Shields <wxs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Alex Trull
2008-11-17 01:40:01 UTC
Responsible Changed From-To: gnats-admin->freebsd-ports-bugs Reclassify. Responsible Changed From-To: freebsd-ports-bugs->wxs I'll take it. I cannot reproduce the issue. Running the code in question on the command line: /usr/sbin/pw usershow -n "dovecot" 2>/dev/null | /usr/bin/cut -d: -f4 returns: 143 as expected. Running the suggested fix does the same. However "pw usershow" makes more sense to me because we're going for the group of the user specified with "login_user" and not for the group with the same name as the user specified with "login_user". The two are not necessarily the same so this patch could introduce a subtle bug. I suspect there may be some sort of corruption in the PR submitter's passwd db. Make sure the "dovecot" user is created correctly. And if using a different "login_user" make sure the passwd and group records are sensible. This has been well tested before commiting to the port by myself and Nicolas Letellier <nicolas@nicoelro.net>, who initially brought this to my attention. -- Yarema On Fri, Nov 21, 2008 at 12:12:28PM -0500, Yarema wrote: > I cannot reproduce the issue. > > Running the code in question on the command line: > /usr/sbin/pw usershow -n "dovecot" 2>/dev/null | /usr/bin/cut -d: -f4 > returns: 143 > as expected. Running the suggested fix does the same. However "pw > usershow" makes more sense to me because we're going for the group of > the user specified with "login_user" and not for the group with the same > name as the user specified with "login_user". The two are not > necessarily the same so this patch could introduce a subtle bug. This was my assessment of the situation also. Thanks for the confirmation. > I suspect there may be some sort of corruption in the PR submitter's > passwd db. Make sure the "dovecot" user is created correctly. And if > using a different "login_user" make sure the passwd and group records > are sensible. This has been well tested before commiting to the port by > myself and Nicolas Letellier <nicolas@nicoelro.net>, who initially > brought this to my attention. I agree with your suspicion. I'll close out this PR and thanks for your work on this port. -- WXS State Changed From-To: open->closed Patch rejected by maintainer. This may introduce a bug and is likely a symptom of a local problem. |