Use the same error message for the below errors.
(option working ONLY if another is specified).
This commit is contained in:
parent
af045a0733
commit
87b5ce3036
@ -1,3 +1,8 @@
|
|||||||
|
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/usermod.c: Use the same error message for the below errors.
|
||||||
|
(option working ONLY if another is specified).
|
||||||
|
|
||||||
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/usermod.c: Make usermod -o and -u work independently of the
|
* src/usermod.c: Make usermod -o and -u work independently of the
|
||||||
|
@ -1038,8 +1038,8 @@ static void process_flags (int argc, char **argv)
|
|||||||
|
|
||||||
if (aflg && (!Gflg)) {
|
if (aflg && (!Gflg)) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: -a flag is ONLY allowed with the -G flag\n"),
|
_("%s: %s flag is ONLY allowed with the %s flag\n"),
|
||||||
Prog);
|
Prog, "-a", "-G");
|
||||||
usage ();
|
usage ();
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
@ -1054,16 +1054,16 @@ static void process_flags (int argc, char **argv)
|
|||||||
|
|
||||||
if (oflg && !uflg) {
|
if (oflg && !uflg) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: -o flag is ONLY allowed with the -u flag\n"),
|
_("%s: %s flag is ONLY allowed with the %s flag\n"),
|
||||||
Prog);
|
Prog, "-o", "-u");
|
||||||
usage ();
|
usage ();
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mflg && !dflg) {
|
if (mflg && !dflg) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
_("%s: -m flag is ONLY allowed with the -d flag\n"),
|
_("%s: %s flag is ONLY allowed with the %s flag\n"),
|
||||||
Prog);
|
Prog, "-m", "-d");
|
||||||
usage ();
|
usage ();
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user