]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/vipw.c: usage(): Print everything to the same stream
authorAlejandro Colomar <alx@kernel.org>
Sun, 13 Jul 2025 14:58:56 +0000 (16:58 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 17 Jul 2025 10:57:50 +0000 (12:57 +0200)
Closes: <https://github.com/shadow-maint/shadow/issues/1288>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/vipw.c

index 4f0bcfbc7922717df31f7ce704f0ae5ee1dc0b6c..03298147738cc3b6826ae1711e890b64ffe04bff 100644 (file)
@@ -82,7 +82,7 @@ static void vipwedit (const char *, int (*)(void), int (*)(void));
 static void usage (int status)
 {
        FILE *usageout = (E_SUCCESS != status) ? stderr : stdout;
-       (void) fprintf (stderr,
+       (void) fprintf (usageout,
                        _("Usage: %s [options]\n"
                          "\n"
                          "Options:\n"),