Lines Matching refs:pw_dir
373 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs()
374 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs()
375 pwbuf->pw_dir[len] = '\0'; in get_home_dirs()
377 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs()
379 if (ignore(pwbuf->pw_dir)) in get_home_dirs()
381 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs()
383 if (!(path = strdup(pwbuf->pw_dir))) { in get_home_dirs()
402 …ater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid); in get_home_dirs()
1018 int len = strlen(pwent->pw_dir) -1; in add_user()
1019 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in add_user()
1020 pwent->pw_dir[len] = '\0'; in add_user()
1023 if (strcmp(pwent->pw_dir, "/") == 0) { in add_user()
1031 if (ignore(pwent->pw_dir)) { in add_user()
1047 pwent->pw_dir, level, selogin, homedir_role); in add_user()