mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 02:19:39 +00:00
commit
e357d5a1fa
@ -101,8 +101,10 @@ static bool lookup_user(const char *optarg, uid_t *uid)
|
||||
|
||||
if (sscanf(optarg, "%u", uid) < 1) {
|
||||
/* not a uid -- perhaps a username */
|
||||
if (sscanf(optarg, "%s", name) < 1)
|
||||
if (sscanf(optarg, "%s", name) < 1) {
|
||||
free(buf);
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = getpwnam_r(name, &pwent, buf, bufsize, &pwentp);
|
||||
if (!pwentp) {
|
||||
|
Loading…
Reference in New Issue
Block a user