| Summary: | idmapd logging of Local-Realms only lists the last realm | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Juno Krahn <Juno.Krahn> | ||||
| Component: | libnfsidmap | Assignee: | Steve Dickson <steved> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | steved | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 804812 (view as bug list) | Environment: | |||||
| Last Closed: | 2012-09-17 17:35:37 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 804812 | ||||||
| Attachments: |
|
||||||
libnfsidmap-0.24-8.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/libnfsidmap-0.24-8.fc16 Package libnfsidmap-0.24-8.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libnfsidmap-0.24-8.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-8012/libnfsidmap-0.24-8.fc16 then log in and leave karma (feedback). libnfsidmap-0.24-8.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 570654 [details] Patch for libnfsidmap.c Description of problem: The list of local realms can be logged with a massage like the following: rpc.idmapd: libnfsidmap: Realms list: 'EXAMPLE2.COM' Instead of printing a list of realms, only the last realm in the list is shown. Version-Release number of selected component (if applicable): 0.24-7.fc16 How reproducible: always Steps to Reproduce: 1. edit /etc/idmapd.conf with Verbosity=1 and Local-Realms=A,B,C 2. 3. Actual results: rpc.idmapd: libnfsidmap: Realms list: 'C' Expected results: rpc.idmapd: libnfsidmap: Realms list: 'A' 'B' 'C' Additional info: Looking at the source, the list is built in a way that intends to append each realm to a string buffer, but instead overwrites the buffer each time. A patch is attached, which also has a few changes to the buffer size calculation, and to skip the extra trailing space. Fortunately, it is only a logging issue, and not as serious as it seemed at first.