]> granicus.if.org Git - sudo/commit
Add setlocale() so the command line arguments that use floating
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 27 Jul 2010 13:43:23 +0000 (09:43 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 27 Jul 2010 13:43:23 +0000 (09:43 -0400)
commitc04f5b58c997661edf26313d8d2e19cd9fa5d007
tree7bc8ad62bc2034a696d25a35f7506801c688880b
parent69b759b592968a88a76dc19269eb0027a43765b8
Add setlocale() so the command line arguments that use floating
point work in different locales.  Since sudo now logs the timing
data in the C locale we must Parse the seconds in the timing file
manually instead of using strtod().  Furthermore, sudo 1.7.3 logged
the number of seconds with the user's locale so if the decimal point
is not '.' try using the locale-specific version.

--HG--
branch : 1.7
sudoreplay.c