]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/getdate.y: get_date(): Fix calculation
authorAlejandro Colomar <alx@kernel.org>
Thu, 15 Feb 2024 11:59:23 +0000 (12:59 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 17 Feb 2024 01:58:43 +0000 (19:58 -0600)
commit4d139ca466820b9a5fe8f75b9a0bee6a922d906a
tree0c055fe6e7a7d80259d8ae797fa62da06428d32d
parente15aa5a8a649acbf81449b5b4229eda255f97c9e
lib/getdate.y: get_date(): Fix calculation

Instead of adding 1, we should add the value the we stored previously in
the variable.

Fixes: 45c6603cc86c ("[svn-upgrade] Integrating new upstream version, shadow (19990709)")
Closes: <https://github.com/shadow-maint/shadow/issues/939>
Link: <https://github.com/shadow-maint/shadow/pull/942>
Reported-by: Michael Vetter <jubalh@iodoru.org>
Reported-by: Gus Kenion <https://github.com/kenion>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/getdate.y