auth:creds: Guess the username first via getpwuid(my_id)
authorAndreas Schneider <asn@samba.org>
Wed, 10 Nov 2021 11:06:51 +0000 (12:06 +0100)
committerJule Anger <janger@samba.org>
Mon, 15 Nov 2021 11:34:06 +0000 (11:34 +0000)
commitf15232d28ecf37a0ad3c026c37c4b7a7d0898e66
tree9fcfe83df74c0fcda9a245608d43f2f2f5402137
parentdb4e342291f86c05fd548161c8c6b2c50e41f533
auth:creds: Guess the username first via getpwuid(my_id)

If we have a container, we often don't have USER or LOGNAME set.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14883

Tested-by: Anoop C S <anoopcs@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit c28be4067463e582e378df402f812e510883d606)

Autobuild-User(v4-15-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-15-test): Mon Nov 15 11:34:06 UTC 2021 on sn-devel-184
auth/credentials/credentials.c