NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/58836: getent(1) doesn't print trailing separator for a group with no members



>Number:         58836
>Category:       bin
>Synopsis:       getent(1) doesn't print trailing separator for a group with no members
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 21 11:55:01 +0000 2024
>Originator:     Valery Ushakov
>Release:        10.0
>Organization:
>Environment:
NetBSD snips 10.0_STABLE NetBSD 10.0_STABLE (GENERIC) #0: Mon Jul  8 16:08:11 MSK 2024  uwe@majava:/home/uwe/work/netbsd/cvs/src-release-10/sys/arch/macppc/compile/GENERIC macppc

>Description:
getent doesn't print trailing separator if the list of items to print
is empty.

This may be a problem, e.g.
https://www.openwall.com/lists/musl/2024/11/21/3

That was reported to the wrong place, b/c getent(1) in alpine's
muls-uitls comes from alpine, not from musl, and it's an adaptation of
NetBSD's getent(1) done by tteras@

>How-To-Repeat:
  $ getent group games
  games:*:13

vs.

  $ grep games: /etc/group 
  games:*:13:

which is the "traditional file format for that database".

>Fix:



Home | Main Index | Thread Index | Old Index