]>
git.ipfire.org Git - thirdparty/shadow.git/log 
Pino Toscano  [Tue, 10 Sep 2024 12:36:49 +0000  (14:36 +0200)]  
lib/user_busy.c: Include <utmpx.h>Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> 
Alejandro Colomar  [Sat, 31 Aug 2024 09:55:27 +0000  (11:55 +0200)]  
src/: Recommend --badname only if it is usefulCloses: <https://github.com/shadow-maint/shadow/issues/1067> Reported-by: Anselm Schüler <mail@anselmschueler.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 31 Aug 2024 09:37:40 +0000  (11:37 +0200)]  
src/: Invert logic to improve readabilitySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 31 Aug 2024 09:25:00 +0000  (11:25 +0200)]  
lib/chkname.c: is_valid_{user,group}_name(): Set errno to distinguish the reasonsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 31 Aug 2024 09:07:04 +0000  (11:07 +0200)]  
man/userdel.8.xml: Reword '-f'Closes: <https://github.com/shadow-maint/shadow/issues/1062> Reported-by: Martin von Wittich <martin.von.wittich@iserv.eu> Cc: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Mon, 12 Aug 2024 00:21:01 +0000  (02:21  +0200)]  
lib/: Chain free(strzero(s))Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Mon, 12 Aug 2024 00:15:18 +0000  (02:15  +0200)]  
lib/string/memset/: memzero(), strzero(): Return the pointerSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 11 Aug 2024 23:53:45 +0000  (01:53  +0200)]  
lib/: Move memzero.[ch] under lib/string/memset/Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 3 Aug 2024 09:51:23 +0000  (11:51 +0200)]  
po/es.po: wsfixSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 1 Aug 2024 10:37:24 +0000  (12:37 +0200)]  
lib/string/strftime.h: STRFTIME(): Tighten macro definitionSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 11 Aug 2024 19:42:03 +0000  (21:42 +0200)]  
src/chage.c: print_day_as_date(): Handle errors from strfime(3)Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Wed, 31 Jul 2024 12:53:12 +0000  (14:53 +0200)]  
src/chage.c: print_day_as_date(): Simplify error handlingSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 1 Aug 2024 10:32:12 +0000  (12:32 +0200)]  
lib/, src/: Use %F instead of %Y-%m-%d with strftime(3)Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Chris Hofstaedtler  [Mon, 5 Aug 2024 22:48:16 +0000  (00:48  +0200)]  
Remove references to cppw, cpgrSigned-off-by: Chris Hofstaedtler <zeha@debian.org> 
Carles Pina i Estany  [Tue, 6 Aug 2024 22:22:38 +0000  (23:22 +0100)]  
Update Catalan translation
Alejandro Colomar  [Wed, 31 Jul 2024 12:35:15 +0000  (14:35 +0200)]  
lib/, src/: Use local time for human-readable datesCloses: <https://github.com/shadow-maint/shadow/issues/1057> Reported-by: Gus Kenion <https://github.com/kenion> Cc: Serge Hallyn <serge@hallyn.com> Cc: Paul Eggert <eggert@cs.ucla.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Eisuke Kawashima  [Mon, 8 Jul 2024 17:14:49 +0000  (02:14  +0900)]  
doc(login.defs): fix type of TTYPERM
Iker Pedrosa  [Wed, 29 May 2024 14:28:04 +0000  (16:28 +0200)]  
share/containers: remove unused dockerfilesSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Wed, 29 May 2024 14:26:39 +0000  (16:26 +0200)]  
CI: use Ansible build in Github ActionSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Wed, 29 May 2024 14:21:05 +0000  (16:21 +0200)]  
doc: update documentation to use Ansible buildSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Wed, 29 May 2024 14:20:01 +0000  (16:20 +0200)]  
share/container-build.sh: update to use Ansible buildSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Wed, 29 May 2024 13:55:13 +0000  (15:55 +0200)]  
share/ansible: implement distribution selectionSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Tue, 14 May 2024 15:35:48 +0000  (17:35 +0200)]  
share/ansible: convert alpine dockerfile to ansibleSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Tue, 14 May 2024 15:14:05 +0000  (17:14 +0200)]  
share/ansible: convert debian dockerfile to ansibleSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Tue, 14 May 2024 15:11:39 +0000  (17:11 +0200)]  
share/ansible: move fedora ci_run to its own fileSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Tue, 14 May 2024 10:52:39 +0000  (12:52 +0200)]  
share/.gitignore: add build-out folderSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Tue, 14 May 2024 10:49:28 +0000  (12:49 +0200)]  
share/ansible: create rolesSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Iker Pedrosa  [Thu, 2 May 2024 14:09:02 +0000  (16:09 +0200)]  
share/ansible: convert fedora dockerfile to ansibleSigned-off-by: Iker Pedrosa <ipedrosa@redhat.com> 
Chris Hofstaedtler  [Sun, 7 Jul 2024 11:36:55 +0000  (13:36 +0200)]  
Makefile.am: avoid warning: EXTRA_DIST multiply definedSigned-off-by: Chris Hofstaedtler <zeha@debian.org> 
Chris Hofstaedtler  [Sun, 7 Jul 2024 00:11:45 +0000  (02:11  +0200)]  
tests/libsubid/04_nss: fix setting basedirSigned-off-by: Chris Hofstaedtler <zeha@debian.org> 
Sebastian Gross  [Wed, 17 Jul 2024 12:22:19 +0000  (14:22 +0200)]  
man: groupmod: remove misleading -N optionSigned-off-by: Sebastian Gross <sgross@emlix.com> 
Sebastian Gross  [Wed, 17 Jul 2024 12:18:18 +0000  (14:18 +0200)]  
man: group(add|mod): clarify list formatSigned-off-by: Sebastian Gross <sgross@emlix.com> 
Sebastian Gross  [Wed, 17 Jul 2024 12:16:03 +0000  (14:16 +0200)]  
man: groupmod: fix misleading paramSigned-off-by: Sebastian Gross <sgross@emlix.com> 
Alejandro Colomar  [Sat, 13 Jul 2024 09:37:25 +0000  (11:37 +0200)]  
lib/chkname.c: An object cannot expand further than the universe in which it residesCloses: <https://github.com/shadow-maint/shadow/issues/1052> Cc: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 01:00:40 +0000  (03:00  +0200)]  
lib/atoi/strtoi/, tests/: strto[iu]_(): 1 is an invalid baseSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 00:18:55 +0000  (02:18  +0200)]  
lib/atoi/, *: Split files
Alejandro Colomar  [Thu, 15 Feb 2024 14:50:45 +0000  (15:50 +0100)]  
src/usermod.c: Use id_t for parsing uid_t and gid_tReviewed-by: Tycho Andersen <tycho@tycho.pizza> Cc: Serge Hallyn <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 15 Feb 2024 14:55:33 +0000  (15:55 +0100)]  
src/usermod.c: Rename identifiers ralated to [ug]id'sSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 16 Jan 2024 01:27:56 +0000  (02:27  +0100)]  
lib/idmapping.c: get_map_ranges(): Don't exit() from a library function
Fixes: ff2baed5dbf8 ("idmapping: add more checks for overflow") 
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Reported-by: Alejandro Colomar <alx@kernel.org> 
Suggested-by: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 17:11:13 +0000  (18:11 +0100)]  
lib/idmapping.c: get_map_ranges(): Simplify iterator variablesSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 11:19:24 +0000  (12:19 +0100)]  
lib/idmapping.c: get_map_ranges(): Remove dead code
This test is impossible.  The limits specified in a2ul() already cover
this.
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Cc: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 11:17:36 +0000  (12:17 +0100)]  
lib/idmapping.c: get_map_ranges(): Move range check to a2ul() call
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Cc: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 11:15:11 +0000  (12:15 +0100)]  
lib/idmapping.c: get_map_ranges(): Move range check to a2ul() call
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Cc: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 11:07:58 +0000  (12:07 +0100)]  
lib/idmapping.c: get_map_ranges(): Move range check to a2ul() calls
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Cc: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 11:04:23 +0000  (12:04 +0100)]  
lib/idmapping.c: get_map_ranges(): Rename local variable
For a pointer iterator used often, a single-letter identifier is more
appropriate.  That reduces the length of lines considerably, avoiding
unnecessary line breaks.  And since we initialize it with
	m = mappings;
it's clear what it is.
Link: <https://github.com/shadow-maint/shadow/commit/
ff2baed5dbf81e8967b805889f565fedb48600df #r136635300>
Cc: Serge Hallyn <serge@hallyn.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 11 Jan 2024 10:47:50 +0000  (11:47 +0100)]  
lib/limits.c: check_logins(): Report LOGIN_ERROR_LOGIN if str2ul() ERANGE
Fixes: 10396f953613 ("* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file limit with getlog() / getulong().") 
Link: <https://github.com/shadow-maint/shadow/pull/893/commits/
882cf59459bc4501b0882a7f02d36c8ce28a30f2 >
Cc: Iker Pedrosa <ipedrosa@redhat.com> 
Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 4 Jul 2024 12:35:24 +0000  (14:35 +0200)]  
src/login_nopam.c: login_access(): Use stpsep() to simplifySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 4 Jul 2024 12:26:09 +0000  (14:26 +0200)]  
src/useradd.c: Use stpsep() to simplifySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 4 Jul 2024 11:25:57 +0000  (13:25 +0200)]  
lib/nss.c: nss_init(): Use stpsep() instead of strtok_r(3)Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Wed, 3 Jul 2024 21:41:16 +0000  (23:41 +0200)]  
src/suauth.c: check_su_auth(): Use stpsep() to simplifySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Wed, 3 Jul 2024 00:18:37 +0000  (02:18  +0200)]  
lib/string/strchr/stpcspn.[ch]: stpcspn(): Remove unused functionSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 23:59:19 +0000  (01:59  +0200)]  
lib/attr.h: ATTR_STRING(): It only accepts one argumentSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 22:32:12 +0000  (00:32  +0200)]  
lib/, src/: Use stpsep() instead of its patternSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 17:31:38 +0000  (19:31 +0200)]  
lib/string/strtok/stpsep.[ch]: stpsep(): Add functionSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Chris Hofstaedtler  [Sun, 7 Jul 2024 11:31:41 +0000  (13:31 +0200)]  
lib/find_new_[gu]id.c: include stdint.h for UINT16_MAX/UINT32_MAXSigned-off-by: Chris Hofstaedtler <zeha@debian.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 16:57:44 +0000  (18:57 +0200)]  
lib/port.c: getportent(): Use strsep(3) instead of its patternSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 16:37:57 +0000  (18:37 +0200)]  
lib/port.c: getportent(): Align variablesSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 14:16:29 +0000  (16:16 +0200)]  
lib/port.c: getttyuser(): Use pointer arithmetic to simplifySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 13:05:21 +0000  (15:05 +0200)]  
lib/port.c: getportent(): Use equivalent code to parse equally-formatted fieldsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 12:51:04 +0000  (14:51 +0200)]  
lib/port.c: getportent(): Make sure the aren't too many fields in the CSVSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 12:43:26 +0000  (14:43 +0200)]  
lib/port.c: getportent(): Make sure there are at least 2 ':' in the lineCloses: <https://github.com/shadow-maint/shadow/issues/1036> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 12:26:19 +0000  (14:26 +0200)]  
lib/port.c: getportent(): Remove obvious commentsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 12:23:19 +0000  (14:23 +0200)]  
lib/port.c: getportent(): Rename goto labelSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 13:49:48 +0000  (15:49 +0200)]  
lib/port.c: getttyuser(): Use goto to break out of nested loopsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 2 Jul 2024 12:03:27 +0000  (14:03 +0200)]  
lib/port.c: getttyuser(): Remove dead codeSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 19 May 2024 00:05:16 +0000  (02:05  +0200)]  
contrib/adduser.c: main(): Use strcpy/cat(3) instead of their patternSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 23:53:12 +0000  (01:53  +0200)]  
contrib, lib/, src/, tests/: Use stpcpy(3) instead of its patternSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 19:38:24 +0000  (21:38 +0200)]  
lib/, src/: Use strrspn() instead of its patternSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 21:45:46 +0000  (23:45 +0200)]  
lib/sssd.c: Style fixesSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 20:03:08 +0000  (22:03 +0200)]  
src/login_nopam.c: login_access(): Simplify, calling strchr(3)Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 23:00:21 +0000  (01:00  +0200)]  
lib/getdef.c: def_load(): Use stp[c]spn() instead of their patternsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 18 May 2024 18:41:30 +0000  (20:41 +0200)]  
lib/string/strchr/: stp[c]spn(), strrspn(), strnul(): Add macros and functionsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 20:44:05 +0000  (21:44 +0100)]  
src/chage.c: Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 20:39:43 +0000  (21:39 +0100)]  
src/faillog.c: Simplify, by calling str2sh() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 20:22:30 +0000  (21:22 +0100)]  
src/usermod.c: Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 20:21:00 +0000  (21:21 +0100)]  
src/passwd.c: Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 20:17:13 +0000  (21:17 +0100)]  
src/useradd.c: Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:54:38 +0000  (20:54 +0100)]  
src/: Use get_[ug]id() where appropriateReviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:20:07 +0000  (20:20 +0100)]  
lib/shadow.c: my_sgetspent(): Simplify error handlingCc: Iker Pedrosa <ipedrosa@redhat.com> Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:21:39 +0000  (20:21 +0100)]  
lib/shadow.c: my_sgetspent(): Remove dead codeReviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:09:58 +0000  (20:09 +0100)]  
lib/shadow.c: my_sgetspent(): Merge 'else {if}' into 'else if'Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:04:43 +0000  (20:04 +0100)]  
lib/sgetspent.c: sgetspent(): Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:03:58 +0000  (20:03 +0100)]  
lib/limits.c: setup_limits(): Simplify, by calling str2i(mode_t, ) instead of str2ul()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:03:33 +0000  (20:03 +0100)]  
lib/limits.c: setup_limits(): Simplify, by calling str2si() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:03:16 +0000  (20:03 +0100)]  
lib/limits.c: setup_limits(): Simplify, by calling a2si() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:02:38 +0000  (20:02 +0100)]  
lib/limits.c: set_umask(): Simplify, by calling str2i(mode_t, ) instead of str2ul()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:01:57 +0000  (20:01 +0100)]  
lib/limits.c: set_prio(): Simplify, by calling str2si() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:01:09 +0000  (20:01 +0100)]  
lib/getdef.c: getdef_long(): Simplify, by calling a2sl() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 19:00:03 +0000  (20:00 +0100)]  
lib/getdef.c: getdef_unum(): Fix wrong limit checkReviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Tue, 9 Jan 2024 18:58:02 +0000  (19:58 +0100)]  
lib/getdef.c: getdef_num(): Simplify, by calling a2si() instead of str2sl()Reviewed-by: "Serge E. Hallyn" <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 22:06:48 +0000  (00:06  +0200)]  
Remove groups(1)Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Wed, 29 May 2024 12:41:45 +0000  (14:41 +0200)]  
Remove id(1)Closes: <https://github.com/shadow-maint/shadow/issues/1005> Suggested-by: dkwo <nicolopiazzalunga@gmail.com> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: Iker Pedrosa <ipedrosa@redhat.com> Cc: Michael Vetter <jubalh@iodoru.org> Cc: Sam James <sam@gentoo.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Fri, 31 May 2024 16:30:16 +0000  (18:30 +0200)]  
lib/idmapping.c: Use long constants in prctl(2), and remove 0sCc: Xi Ruoyao <xry111@xry111.site> Cc: Lukas Slebodnik <lslebodn@fedoraproject.org> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 22:24:40 +0000  (00:24  +0200)]  
lib/attr.h: Use C23-style attributesSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 21:55:56 +0000  (23:55 +0200)]  
lib/gshadow.c: Use XREALLOC() instead of silently continuing on ENOMEMReported-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sun, 30 Jun 2024 21:50:31 +0000  (23:50 +0200)]  
src/: Remove dead codeReported-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Sat, 29 Jun 2024 16:43:47 +0000  (18:43 +0200)]  
lib/: Use [[gnu::alloc_size(...)]] on allocation functionsSuggested-by: Martin Uecker <uecker@tugraz.at> Signed-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 27 Jun 2024 15:19:36 +0000  (17:19 +0200)]  
lib/: Use multi-line macro definitionsSigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 27 Jun 2024 14:42:54 +0000  (16:42 +0200)]  
lib/alloc/, lib/, src/, tests/: Organize the allocation APIs in a new subdirectorySigned-off-by: Alejandro Colomar <alx@kernel.org> 
Alejandro Colomar  [Thu, 27 Jun 2024 13:58:18 +0000  (15:58 +0200)]  
lib/alloc.[ch]: xmalloc(): Remove unused functionSigned-off-by: Alejandro Colomar <alx@kernel.org>