On Wed, May 18, 2011 at 1:16 PM, Peter Matulis
<peter.matu...@canonical.com> wrote:
> I cannot reproduce this (on updated Lucid server and client).
>
> Server:
>
> $ cat /etc/netgroup
> group_not_empty (-,alpha,)
> group_empty
> test1 group_not_empty group_empty
> test2 group_empty group_not_empty
>
> Client:
>
> $ getent netgroup test1
> test1                 (-, alpha, )
>
> $ getent netgroup test2
> test2                 (-, alpha, )
>
> Both:
>
> $ apt-cache policy libc6
> libc6:
>  Installed: 2.11.1-0ubuntu7.8
>  Candidate: 2.11.1-0ubuntu7.8
>
> $ lsb_release -rd
> Description:    Ubuntu 10.04.2 LTS
> Release:        10.04

Curious, I have 'files' for netgroup in /etc/nsswitch.conf, what do you
have?

I can still reliably reproduce on ubuntu7.8 but it might be a bug
specific to libnss_files and many people go with 'compat' on that
line.

-A

>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/690929
>
> Title:
>  getent fails to enumerate netgroups that contain multiple groups when
>  the last group is empty
>
> Status in “eglibc” package in Ubuntu:
>  New
>
> Bug description:
>  Binary package hint: libc6
>
>  root@goats:/etc# cat /etc/netgroup
>  group_not_empty (-,antarus,)
>  group_empty
>  test1 group_not_empty group_empty
>  test2 group_empty group_not_empty
>
>  root@goats:/etc# getent netgroup test1
>  test1
>  root@goats:/etc# getent netgroup test2
>  test2                 (-, antarus, )
>
>  I believe the correct behavior is to list (-, antarus, ) for both
>  queries.
>
>
>  root@goats:/etc# apt-cache policy libc6
>  libc6:
>    Installed: 2.11.1-0ubuntu7.5
>    Candidate: 2.11.1-0ubuntu7.5
>
>  root@goats:/etc# lsb_release -rd
>  Description:    Ubuntu 10.04.1 LTS
>  Release:        10.04
>
>  I have not been able to successfully compile eglibc with debug symbols
>  and trying to track the behavior of __getnetgrent_r is a pain with
>  optimized libraries; however this is likely either a bug in
>  __getnetgrent_r or a 'feature' of netgroups of which I am not aware.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/690929/+subscribe
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/690929

Title:
  getent fails to enumerate netgroups that contain multiple groups when
  the last group is empty

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to