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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user