Lines Matching refs:pw_dir
369 int len = strlen(pwbuf->pw_dir) -1; in get_home_dirs()
370 for(; len > 0 && pwbuf->pw_dir[len] == '/'; len--) { in get_home_dirs()
371 pwbuf->pw_dir[len] = '\0'; in get_home_dirs()
373 if (strcmp(pwbuf->pw_dir, "/") == 0) in get_home_dirs()
375 if (ignore(pwbuf->pw_dir)) in get_home_dirs()
377 if (semanage_str_count(pwbuf->pw_dir, '/') <= 1) in get_home_dirs()
379 if (!(path = strdup(pwbuf->pw_dir))) { in get_home_dirs()
398 …ater than %u or its login shell is /sbin/nologin.", pwbuf->pw_name, pwbuf->pw_dir, minuid, maxuid); in get_home_dirs()
1011 int len = strlen(pwent->pw_dir) -1; in add_user()
1012 for(; len > 0 && pwent->pw_dir[len] == '/'; len--) { in add_user()
1013 pwent->pw_dir[len] = '\0'; in add_user()
1016 if (strcmp(pwent->pw_dir, "/") == 0) { in add_user()
1024 if (ignore(pwent->pw_dir)) { in add_user()
1040 pwent->pw_dir, level, selogin, homedir_role); in add_user()