]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
pwunconv: Drop incorrect comment
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 19 Dec 2025 12:50:01 +0000 (12:50 +0000)
committerAlejandro Colomar <foss+github@alejandro-colomar.es>
Fri, 19 Dec 2025 14:21:49 +0000 (15:21 +0100)
Shadow password files do not necessarily need aging information.
Also, passwd has no aging information.

No conversion is performed, so drop the comment entirely.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
src/pwunconv.c

index fd11e9ad4acbdf0656e0c1e5c8a682da6e044ba3..4adaf70286d55fff2c3577fb293e98483090bc67 100644 (file)
@@ -194,16 +194,6 @@ int main (int argc, char **argv)
                        pwent.pw_passwd = spwd->sp_pwdp;
                }
 
-               /*
-                * Password aging works differently in the two different
-                * systems. With shadow password files you apparently must
-                * have some aging information. The maxweeks or minweeks
-                * may not map exactly. In pwconv we set max == 10000,
-                * which is about 30 years. Here we have to undo that
-                * kludge. So, if maxdays == 10000, no aging information is
-                * put into the new file. Otherwise, the days are converted
-                * to weeks and so on.
-                */
                if (pw_update (&pwent) == 0) {
                        fprintf (stderr,
                                 _("%s: failed to prepare the new %s entry '%s'\n"),