]> granicus.if.org Git - shadow/commitdiff
Use the same error message for the below errors.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 17 Nov 2007 14:49:39 +0000 (14:49 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 17 Nov 2007 14:49:39 +0000 (14:49 +0000)
(option working ONLY if another is specified).

ChangeLog
src/usermod.c

index fecce194bb553410376731521cf527ac5319dbaa..eda82668c315ba7cdeccad0fcf366b072486e3c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * src/usermod.c: Make usermod -o and -u work independently of the
index a0bbab2b2a0a3d716deef87f2f1f5eadd07e0dfb..885dadae31596ea369cdbc2ac42ad8af41beb912 100644 (file)
@@ -1038,8 +1038,8 @@ static void process_flags (int argc, char **argv)
 
        if (aflg && (!Gflg)) {
                fprintf (stderr,
-                        _("%s: -a flag is ONLY allowed with the -G flag\n"),
-                        Prog);
+                        _("%s: %s flag is ONLY allowed with the %s flag\n"),
+                        Prog, "-a", "-G");
                usage ();
                exit (E_USAGE);
        }
@@ -1054,16 +1054,16 @@ static void process_flags (int argc, char **argv)
 
        if (oflg && !uflg) {
                fprintf (stderr,
-                        _("%s: -o flag is ONLY allowed with the -u flag\n"),
-                        Prog);
+                        _("%s: %s flag is ONLY allowed with the %s flag\n"),
+                        Prog, "-o", "-u");
                usage ();
                exit (E_USAGE);
        }
 
        if (mflg && !dflg) {
                fprintf (stderr,
-                        _("%s: -m flag is ONLY allowed with the -d flag\n"),
-                        Prog);
+                        _("%s: %s flag is ONLY allowed with the %s flag\n"),
+                        Prog, "-m", "-d");
                usage ();
                exit (E_USAGE);
        }