Lines Matching refs:username
52 static void get_user_info(const char *username, const struct passwd **pwdp,
64 const char *username, *shell, *term; in main() local
67 username = NULL; in main()
78 username = optarg; in main()
82 username = optarg; in main()
97 get_user_info(username, &pwd, &lcap); in main()
109 if (clean || username != NULL) { in main()
112 get_user_info(username, &pwd, &lcap); in main()
123 if (setusercontext(lcap, pwd, pwd->pw_uid, username in main()
132 if (clean && username && chdir(pwd->pw_dir) < 0) in main()
151 get_user_info(const char *username, const struct passwd **pwdp, in get_user_info() argument
158 if (username) { in get_user_info()
159 pwd = getpwnam(username); in get_user_info()
162 err(1, "getpwnam: %s", username); in get_user_info()
164 errx(1, "%s: no such user", username); in get_user_info()