- update to 1.8.13 * The examples directory is now a subdirectory of the doc dir to conform to Debian guidelines. Bug #682. * Fixed a compilation error for siglist.c and signame.c on some systems. Bug #686 * Weak symbols are now used for sudo_warn_gettext() and sudo_warn_strerror() in libsudo_util to avoid link errors when -Wl,--no-undefined is used in LDFLAGS. The --disable-weak-symbols configure option can be used to disable the user of weak symbols. * Fixed a bug in sudo's mkstemps() replacement function that prevented the file extension from being preserved in sudoedit. * A new mail_all_cmnds sudoers flag will send mail when a user runs a command (or tries to). The behavior of the mail_always flag has been restored to always send mail when sudo is run. * New "MAIL" and "NOMAIL" command tags have been added to toggle mail sending behavior on a per-command (or Cmnd_Alias) basis. * Fixed matching of empty passwords when sudo is configured to use passwd (or shadow) file authentication on systems where the crypt() function returns NULL for invalid salts. * The "all" setting for listpw and verifypw now works correctly with LDAP and sssd sudoers. * The sudo timestamp directory is now created at boot time on platforms that use systemd. * Sudo will now restore the value of the SIGPIPE handler before executing the command. * Sudo now uses "struct timespec" instead of "struct timeval" for time keeping when possible. If supported, sudoedit and visudo now use nanosecond granularity time stamps. * Fixed a symbol name collision with systems that have their own SHA2 implementation. This fixes a problem where PAM could use OBS-URL: https://build.opensuse.org/request/show/307129 OBS-URL: https://build.opensuse.org/package/show/Base:System/sudo?expand=0&rev=83
16 lines
691 B
Diff
16 lines
691 B
Diff
From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762465
|
|
|
|
Index: sudo-1.8.13/plugins/sudoers/boottime.c
|
|
===================================================================
|
|
--- sudo-1.8.13.orig/plugins/sudoers/boottime.c 2015-03-18 18:05:51.000000000 +0100
|
|
+++ sudo-1.8.13/plugins/sudoers/boottime.c 2015-05-14 14:48:33.855294076 +0200
|
|
@@ -79,6 +79,8 @@ get_boottime(struct timespec *ts)
|
|
if (fp != NULL) {
|
|
while ((len = getline(&line, &linesize, fp)) != -1) {
|
|
if (strncmp(line, "btime ", 6) == 0) {
|
|
+ if (line[len - 1] == '\n')
|
|
+ line[len - 1] = '\0';
|
|
long long llval = strtonum(line + 6, 1, LLONG_MAX, NULL);
|
|
if (llval > 0) {
|
|
ts->tv_sec = (time_t)llval;
|