Bug 804152 - idmapd logging of Local-Realms only lists the last realm
Summary: idmapd logging of Local-Realms only lists the last realm
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libnfsidmap
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 804812
TreeView+ depends on / blocked
 
Reported: 2012-03-16 16:56 UTC by Juno Krahn
Modified: 2012-09-17 17:35 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 804812 (view as bug list)
Environment:
Last Closed: 2012-09-17 17:35:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch for libnfsidmap.c (695 bytes, patch)
2012-03-16 16:56 UTC, Juno Krahn
no flags Details | Diff

Description Juno Krahn 2012-03-16 16:56:19 UTC
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.

Comment 1 Fedora Update System 2012-03-21 13:08:39 UTC
libnfsidmap-0.24-8.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/libnfsidmap-0.24-8.fc16

Comment 2 Fedora Update System 2012-05-18 10:24:19 UTC
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).

Comment 3 Fedora Update System 2012-09-17 17:35:37 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.