shadow/src
Alejandro Colomar b2bed465e8 Use getnameinfo(3) instead of our own equivalent
I didn't know getnameinfo(3) existed, so I implemented it, or something
similar to it called inet_sockaddr2str().  Let's use the standard API.

Link: <https://inbox.sourceware.org/libc-alpha/0f25d60f-f183-b518-b6c1-6d46aa63ee57@gmail.com/T/>
Link: <https://stackoverflow.com/a/42190913/6872717>
Link: <https://github.com/shadow-maint/shadow/pull/617>
Link: <https://software.codidact.com/posts/287748>
Cc: Zack Weinberg <zack@owlfolio.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-01-20 10:23:03 -06:00
..
.gitignore getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
.indent.pro [svn-upgrade] Integrating new upstream version, shadow (4.0.8) 2007-10-07 11:46:07 +00:00
chage.c chage: Fix regression in print_date 2022-10-05 12:43:45 +02:00
check_subid_range.c Make shadow_logfd and Prog not extern 2021-12-23 15:18:07 -06:00
chfn.c chfn: new_fields: fix wrong fields printed 2022-12-23 09:04:02 +01:00
chgpasswd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
chpasswd.c chpasswd: add IS_CRYPT_METHOD 2022-04-03 21:07:09 -05:00
chsh.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
expiry.c Assume SIGTSTP is defined 2022-12-15 16:22:05 -06:00
faillog.c Initialize local variables 2022-05-24 07:49:11 -05:00
free_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
get_subid_owners.c Declare file local functions static 2022-01-03 15:09:17 +01:00
getsubids.c Declare file local functions static 2022-01-03 15:09:17 +01:00
gpasswd.c Assume SIGTSTP is defined 2022-12-15 16:22:05 -06:00
groupadd.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmems.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
groupmod.c Fix typos in length calculations 2022-12-22 10:34:04 +01:00
groups.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpck.c Declare read-only lookup pointers const 2022-01-03 15:09:17 +01:00
grpconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
grpunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
id.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
lastlog.c lastlog: check for localtime() return value 2022-10-07 09:53:02 -05:00
login_nopam.c Use getnameinfo(3) instead of our own equivalent 2023-01-20 10:23:03 -06:00
login.c shadow: Fix can not print full login timeout message 2023-01-12 18:30:32 -06:00
logoutd.c Cosmetic fixes 2022-12-22 10:31:43 +01:00
Makefile.am getsubids: system binary for user's sub*ids 2021-11-17 16:35:50 +01:00
new_subid_range.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newgidmap.c Declare variable for string literal const 2022-01-03 15:09:17 +01:00
newgrp.c Remove USE_SYSLOG preprocessor conditional, which was always defined 2022-12-22 11:44:36 +01:00
newuidmap.c Declare file local functions static 2022-01-03 15:09:17 +01:00
newusers.c Don't test for NULL before calling free(3) 2022-09-29 16:03:53 +02:00
nologin.c Update licensing info 2021-12-23 19:36:50 -06:00
passwd.c Replace the deprecated getpass(3) by our agetpass() 2022-12-05 10:47:19 +01:00
pwck.c src: correct "badname" option 2022-05-06 10:13:51 -05:00
pwconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
pwunconv.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
su.c Use strlcpy(3) instead of its pattern 2022-12-22 18:03:39 -06:00
suauth.c Update licensing info 2021-12-23 19:36:50 -06:00
sulogin.c Remove dead code 2022-12-22 11:44:36 +01:00
useradd.c Add support for skeleton files from /usr/etc/skel 2022-12-19 09:43:03 -06:00
userdel.c Merge pull request #451 from hallyn/2021-12-05/license 2022-01-02 18:38:42 -06:00
usermod.c fix usermod -rG x y while user y is not in group x will cause user y add into group x 2022-10-06 20:29:44 -05:00
vipw.c Remove redeclared variable 2022-05-24 07:49:11 -05:00