Merge pull request #9783 from poettering/get-user-creds-flags
beef up get_user_creds() a bit and other improvements
This commit is contained in:
+1
-1
@@ -115,7 +115,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
case ARG_UID: {
|
||||
const char *u = optarg;
|
||||
|
||||
r = get_user_creds(&u, &arg_uid, &arg_gid, NULL, NULL);
|
||||
r = get_user_creds(&u, &arg_uid, &arg_gid, NULL, NULL, 0);
|
||||
if (r == -ESRCH) /* If the user doesn't exist, then accept it anyway as numeric */
|
||||
r = parse_uid(u, &arg_uid);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user