* nfs-utils/idmapd: use of private define breaks with libevent-2.1.x
@ 2015-01-17 18:25 Holger Hoffstätte
2015-01-23 14:03 ` Steve Dickson
0 siblings, 1 reply; 2+ messages in thread
From: Holger Hoffstätte @ 2015-01-17 18:25 UTC (permalink / raw)
To: linux-nfs
Hello,
The Gentoo community has found a problem with the current release of
nfs-utils, where idmapd uses a not strictly private, yet strongly
discouraged #define.
Bug description with proposed patch:
https://bugs.gentoo.org/show_bug.cgi?id=446374
The code in question:
http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=blob;f=utils/idmapd/idmapd.c;hb=HEAD#l719
According to:
https://github.com/libevent/libevent/blob/master/include/event2/event_struct.h
which says:
"No field declared in this file should be used directly in user code."
using EVLIST_INIT directly is bound to break. This seems to be a leftover
from legacy code.
A simple fix is attached to the bugzilla above and just calls the
proper public API, which is functionally equivalent to the bit check.
Would be nice to see this in 1.3.2. :)
Thanks!
Holger
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: nfs-utils/idmapd: use of private define breaks with libevent-2.1.x
2015-01-17 18:25 nfs-utils/idmapd: use of private define breaks with libevent-2.1.x Holger Hoffstätte
@ 2015-01-23 14:03 ` Steve Dickson
0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2015-01-23 14:03 UTC (permalink / raw)
To: Holger Hoffstätte, linux-nfs
On 01/17/2015 01:25 PM, Holger Hoffstätte wrote:
>
> Hello,
>
> The Gentoo community has found a problem with the current release of
> nfs-utils, where idmapd uses a not strictly private, yet strongly
> discouraged #define.
>
> Bug description with proposed patch:
> https://bugs.gentoo.org/show_bug.cgi?id=446374
Committed...
steved.
>
> The code in question:
> http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=blob;f=utils/idmapd/idmapd.c;hb=HEAD#l719
>
> According to:
> https://github.com/libevent/libevent/blob/master/include/event2/event_struct.h
>
> which says:
> "No field declared in this file should be used directly in user code."
>
> using EVLIST_INIT directly is bound to break. This seems to be a leftover
> from legacy code.
>
> A simple fix is attached to the bugzilla above and just calls the
> proper public API, which is functionally equivalent to the bit check.
>
> Would be nice to see this in 1.3.2. :)
>
> Thanks!
>
> Holger
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-23 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-17 18:25 nfs-utils/idmapd: use of private define breaks with libevent-2.1.x Holger Hoffstätte
2015-01-23 14:03 ` Steve Dickson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox