]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/chfn.c: Partially revert "lib/, src/: Use strsep(3) instead of its pattern"
authorAlejandro Colomar <alx@kernel.org>
Mon, 17 Feb 2025 12:23:37 +0000 (13:23 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sun, 2 Mar 2025 22:08:19 +0000 (16:08 -0600)
commitb74c7c505897bc9d7a76871e7643893faafb1218
tree5c5634ec9d17e3ee96b529462599684ed72727b4
parentf9c2096c0be797cd04a47c241656f9b9cc933ae4
src/chfn.c: Partially revert "lib/, src/: Use strsep(3) instead of its pattern"

This partially reverts commit 16cb664865541162c504a6f5ef5ca4b38b5e0c9a.

I'll try to reintroduce this change more carefully.
For now, let's revert to a known-good state.

The problem was due to accidentally ignoring the effects of the 'break'
on the 'cp' variable.

Fixes: 16cb66486554 (2024-07-01; "lib/, src/: Use strsep(3) instead of its pattern")
Closes: <https://github.com/shadow-maint/shadow/issues/1210>
Link: <https://github.com/shadow-maint/shadow/pull/1213>
Link: <https://github.com/shadow-maint/shadow/pull/1212>
Reported-by: Chris Hofstaedtler <zeha@debian.org>
Suggested-by: Chris Hofstaedtler <zeha@debian.org>
Tested-by: Chris Hofstaedtler <zeha@debian.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/chfn.c