"R:V:C:qn:u:rY",
"R:V:C:qn:u:c:d:e:p:g:G:mM:l:k:s:w:L:h:H:FNPY",
"R:V:C:qn:u:FPa7",
- "R:V:C:q",
+ "R:V:C",
"R:V:C:q",
"R:V:C:q"
},
"R:V:C:qn:g:Y",
"R:V:C:qn:d:g:l:h:H:FM:m:NPY",
"R:V:C:qn:g:FPa",
- "R:V:C:q"
+ "R:V:C"
}
};
"usage: pw usernext [switches]\n"
"\t-V etcdir alternate /etc location\n"
"\t-R rootir alternate root directory\n"
- "\t-C config configuration file\n"
- "\t-q quiet operation\n",
+ "\t-C config configuration file\n",
"usage pw: lock [switches]\n"
"\t-V etcdir alternate /etc locations\n"
"\t-C config configuration file\n"
"\t-V etcdir alternate /etc location\n"
"\t-R rootir alternate root directory\n"
"\t-C config configuration file\n"
- "\t-q quiet operation\n"
}
};
* next gid to stdout
*/
if (mode == M_NEXT) {
- gid_t next = gr_gidpolicy(cnf, id);
- if (getarg(args, 'q'))
- return next;
- printf("%u\n", next);
- return EXIT_SUCCESS;
+ printf("%u\n", gr_gidpolicy(cnd, id));
+ return (EXIT_SUCCESS);
}
if (mode == M_PRINT && getarg(args, 'a')) {
* With M_NEXT, we only need to return the
* next uid to stdout
*/
- if (mode == M_NEXT)
- {
- uid_t next = pw_uidpolicy(cnf, id);
- if (getarg(args, 'q'))
- return next;
- printf("%u:", next);
+ if (mode == M_NEXT) {
+ printf("%u:", pw_uidpolicy(cnf, id));
pw_group(mode, name, -1, args);
- return EXIT_SUCCESS;
+ return (EXIT_SUCCESS);
}
/*