Lines Matching defs:cnf
414 write_userconfig(struct userconf *cnf, const char *file)
439 sbuf_cat(buf, boolean_str(cnf->default_password));
442 sbuf_cat(buf, boolean_str(cnf->reuse_uids));
445 sbuf_cat(buf, boolean_str(cnf->reuse_gids));
448 sbuf_cat(buf, cnf->nispasswd ? cnf->nispasswd : "");
452 sbuf_cat(buf, cnf->dotdir ? cnf->dotdir :
456 sbuf_cat(buf, cnf->newmail ? cnf->newmail :
460 sbuf_cat(buf, cnf->logfile ? cnf->logfile :
464 sbuf_cat(buf, cnf->home);
467 sbuf_printf(buf, "%04o", cnf->homemode);
471 sbuf_cat(buf, cnf->shelldir);
481 sbuf_cat(buf, cnf->shell_default ?
482 cnf->shell_default : bourne_shell);
485 sbuf_cat(buf, cnf->default_group ?
486 cnf->default_group : "");
489 for (j = 0; cnf->groups != NULL &&
490 j < (int)cnf->groups->sl_cur; j++)
492 "," : "", cnf->groups->sl_str[j]);
496 sbuf_cat(buf, cnf->default_class ?
497 cnf->default_class : "");
500 sbuf_printf(buf, "%ju", (uintmax_t)cnf->min_uid);
504 sbuf_printf(buf, "%ju", (uintmax_t)cnf->max_uid);
508 sbuf_printf(buf, "%ju", (uintmax_t)cnf->min_gid);
512 sbuf_printf(buf, "%ju", (uintmax_t)cnf->max_gid);
516 sbuf_printf(buf, "%jd", (intmax_t)cnf->expire_days);
520 sbuf_printf(buf, "%jd", (intmax_t)cnf->password_days);