Alejandro Colomar
|
f39ac101ff
|
lib/, src/: str2*(): Rename functions and reorder parameters
This makes them compatible with liba2i's functions.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-03-29 14:29:13 -05:00 |
|
Alejandro Colomar
|
27e236ca79
|
lib/, src/, po/: get[u]long(): Move functions to lib/atoi/str2i.h
And make them inline.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-03-29 14:29:13 -05:00 |
|
Alejandro Colomar
|
51cd6aec02
|
lib/: Don't say 'len' where 'size' is meant
Fixes: 45c6603cc8 ("[svn-upgrade] Integrating new upstream version, shadow (19990709)")
Fixes: 3b7cc05387 ("lib: replace `USER_NAME_MAX_LENGTH` macro")
Fixes: 6be85b0baf ("lib/chkname.c: Use tmp variable to avoid a -Wsign-compare warning")
See-also: 403a2e3771 ("lib/chkname.c: Take NUL byte into account")
See-also: 6a1f45d932 ("lib/chkname.c: Support unlimited user name lengths")
Fixes: 95ea61009d ("lib/chkname.c: Use precise comment")
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Tobias Stoeckmann <tobias@stoeckmann.org>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-02-13 16:13:05 -06:00 |
|
Alejandro Colomar
|
2a9b6d80e7
|
lib/, src/: getulong(): Use the usual -1 as an error code
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2024-01-05 16:54:55 -06:00 |
|
Alejandro Colomar
|
093fb605f9
|
lib: Merge libmisc into libshadow
The separation was unnecessary, and caused build problems. Let's go
wild and obliterate the library. The files are moved to libshadow.
Scripted change:
$ find libmisc/ -type f \
| grep '\.[chy]$' \
| xargs mv -t lib;
Plus updating the Makefile and other references. While at it, I've
sorted the sources lists.
Link: <https://github.com/shadow-maint/shadow/pull/792>
Reported-by: David Seifert <soap@gentoo.org>
Cc: Sam James <sam@gentoo.org>
Cc: Christian Bricart <christian@bricart.de>
Cc: Michael Vetter <jubalh@iodoru.org>
Cc: Robert Förster <Dessa@gmake.de>
[ soap tested the Gentoo package ]
Tested-by: David Seifert <soap@gentoo.org>
Acked-by: David Seifert <soap@gentoo.org>
Acked-by: Serge Hallyn <serge@hallyn.com>
Acked-by: Iker Pedrosa <ipedrosa@redhat.com>
Acked-by: <lslebodn@fedoraproject.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
2023-08-31 08:55:26 +02:00 |
|