]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/port.c: getportent(): Use equivalent code to parse equally-formatted fields
authorAlejandro Colomar <alx@kernel.org>
Tue, 2 Jul 2024 13:05:21 +0000 (15:05 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 6 Jul 2024 12:44:02 +0000 (07:44 -0500)
commitd9d0117e8074f3a6523e3b275988b2eeeb9a0344
tree7b835b90fcdfff296d868f3ff604c5b4506f4355
parenta198054456728ae3ea8565e11e636c759616ef9c
lib/port.c: getportent(): Use equivalent code to parse equally-formatted fields

The tty names field and the user names field have the same formatting:
a CSV terminated by a ':'.  Thus, we can --and should-- use the same
exact code for parsing both.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/port.c