Ian Jackson <ian.jack...@citrix.com> writes: > Markus Armbruster writes ("Re: [Qemu-devel] [PATCH 08/12] os-posix: Provide > new -runas <uid>:<gid> facility"): >> Ian Jackson <ian.jack...@citrix.com> writes: >> > That would defer the getpwnam from argument parsing to os_setup_post. >> > I think that's undesriable. >> >> No argument. But why can't os_parse_cmd_args() call getpwnam() as it >> does now, then store user_pwd->pw_uid, ->pw_gid and ->pw_name instead of >> user_pwd? Store a null name when it parses the argument as UID:GID. > > Oh, I see. It seems less obvious to me than what I have done, but I > can do it like that if you like.
I just wanted to toss out the idea. Please use your judgenment and do it the way you like better.