]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
src/usermod.c: Remove 'no changes' informative output
authorAlejandro Colomar <alx@kernel.org>
Wed, 15 Oct 2025 16:01:14 +0000 (18:01 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Thu, 16 Oct 2025 07:37:30 +0000 (09:37 +0200)
No news is good news.

Debian needs to parse this message to ignore it, or alternatively check
if the call will be a no-op (which we already do) and skip the call.
If we remove this output, we're allowing Debian to remove that
complexity in their wrapper.

We don't expect this output to be very useful for interactive use
either.

Also, this message was changed from stderr to stdout recently, so we
don't need to worry about old scripts that might break due to this
change.  If there were scripts relying on that, they would have been
broken already in the previous change.

Closes: <https://github.com/shadow-maint/shadow/issues/1361>
Reported-by: Marc Haber <githubvisible@zugschlus.de>
Cc: <https://github.com/cachius>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/usermod.c

index 17288d07b331e2abde34ecf0d319c3449a7c1682..a3b89a5cb2bf8bd61811fe67e939027a0bb99ab1 100644 (file)
@@ -1418,7 +1418,6 @@ process_flags(int argc, char **argv)
              || Zflg
 #endif                         /* WITH_SELINUX */
        )) {
-               printf(_("%s: no changes\n"), Prog);
                exit (E_SUCCESS);
        }