+2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/usermod.c: Make usermod -o and -u work independently of the
+ argument order.
+
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
* src/usermod.c: Validate that two of the -L, -p, and -U options
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
- * src/usermod.c: Make usermod -d and -m work independent of the
+ * src/usermod.c: Make usermod -d and -m work independently of the
argument order. Thanks to Justin Pryzby <jpryzby+d@quoininc.com>
for the patch. This fixes Debian's bug #451518.
writing the passwd files.
- Flush the nscd tables using nscd -i instead of the private glibc socket.
(RedHat patches shadow-4.0.16-nscd.c and shadow-4.0.17-notInheritFd.patch)
+- usermod: Make usermod options independent of the argument order.
shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007
mflg++;
break;
case 'o':
- if (!uflg)
- usage ();
-
oflg++;
break;
case 'p':
exit (E_USAGE);
}
+ if (oflg && !uflg) {
+ fprintf (stderr,
+ _("%s: -o flag is ONLY allowed with the -u flag\n"),
+ Prog);
+ usage ();
+ exit (E_USAGE);
+ }
+
if (mflg && !dflg) {
fprintf (stderr,
_("%s: -m flag is ONLY allowed with the -d flag\n"),