+2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/chgpasswd.c, src/chpasswd.c: The -c, -e, and -m options are
+ exclusives.
+
2007-11-20 Nicolas François <nicolas.francois@centraliens.net>
* man/chpasswd.8.xml, man/chgpasswd.8.xml: Document how the
Prog, "-s", "-c");
usage ();
}
- if (md5flg && cflg) {
+ if ((eflg && (md5flg || cflg)) ||
+ md5flg && cflg) {
fprintf (stderr,
- _("%s: the -m and -c flags are exclusive\n"),
+ _("%s: the -c, -e, and -m flags are exclusive\n"),
Prog);
usage ();
}
Prog, "-s", "-c");
usage ();
}
- if (md5flg && cflg) {
+ if ((eflg && (md5flg || cflg)) ||
+ md5flg && cflg) {
fprintf (stderr,
- _("%s: the -m and -c flags are exclusive\n"),
+ _("%s: the -c, -e, and -m flags are exclusive\n"),
Prog);
usage ();
}