Hello community, here is the log from the commit of package sudo for openSUSE:Factory checked in at 2014-12-21 12:04:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sudo (Old) and /work/SRC/openSUSE:Factory/.sudo.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sudo" Changes: -------- --- /work/SRC/openSUSE:Factory/sudo/sudo.changes 2014-11-15 12:28:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.sudo.new/sudo.changes 2014-12-21 12:03:04.000000000 +0100 @@ -1,0 +2,6 @@ +Wed Dec 17 09:52:47 UTC 2014 - [email protected] + +- correctly parse /proc/stat for boottime (bnc#899252) + * added sudo-parse_boottime_properly.patch from Debian + +------------------------------------------------------------------- New: ---- sudo-parse_boottime_properly.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sudo.spec ++++++ --- /var/tmp/diff_new_pack.EIXYfA/_old 2014-12-21 12:03:06.000000000 +0100 +++ /var/tmp/diff_new_pack.EIXYfA/_new 2014-12-21 12:03:06.000000000 +0100 @@ -31,6 +31,7 @@ Patch0: sudoers2ldif-env.patch # PATCH-OPENSUSE: the "SUSE" branding of the default sudo config Patch1: sudo-sudoers.patch +Patch2: sudo-parse_boottime_properly.patch BuildRequires: audit-devel BuildRequires: groff BuildRequires: libselinux-devel @@ -70,6 +71,7 @@ %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build %ifarch s390 s390x %sparc ++++++ sudo-parse_boottime_properly.patch ++++++ >From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762465 --- a/plugins/sudoers/boottime.c +++ b/plugins/sudoers/boottime.c @@ -80,6 +80,8 @@ 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) { tv->tv_sec = (time_t)llval; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
