2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Format T_TIMESPEC as "%d.%d" instead of "%.1f"

This fixes the display of the timeout values in the "sudo -V" output
on systems without a C99-compliant snprintf().  The snprintf()
replacement sudo ships with does not support floating point.
This commit is contained in:
Todd C. Miller
2025-01-05 14:11:18 -07:00
parent 7c121ff834
commit 01b1410d61
3 changed files with 10 additions and 8 deletions

View File

@@ -191,11 +191,11 @@ struct sudo_defs_types sudo_defs_table[] = {
NULL,
}, {
"timestamp_timeout", T_TIMESPEC|T_BOOL,
N_("Authentication timestamp timeout: %.1f minutes"),
N_("Authentication timestamp timeout: %d.%d minutes"),
NULL,
}, {
"passwd_timeout", T_TIMESPEC|T_BOOL,
N_("Password prompt timeout: %.1f minutes"),
N_("Password prompt timeout: %d.%d minutes"),
NULL,
}, {
"passwd_tries", T_UINT,