Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sudo for openSUSE:Factory checked in 
at 2022-03-08 20:31:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sudo (Old)
 and      /work/SRC/openSUSE:Factory/.sudo.new.2349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sudo"

Tue Mar  8 20:31:28 2022 rev:129 rq:959857 version:1.9.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/sudo/sudo.changes        2022-02-18 
23:02:37.997414293 +0100
+++ /work/SRC/openSUSE:Factory/.sudo.new.2349/sudo.changes      2022-03-11 
11:36:22.646275106 +0100
@@ -1,0 +2,9 @@
+Thu Mar  3 12:00:46 UTC 2022 - Jason Sikes <jsi...@suse.com>
+
+- Add sudo-1.9.9-honor-T_opt.patch
+  * the -T option of sudo does nothing even when
+  'Defaults user_command_timeouts' is present in the configuration.
+  * [bsc#1193446]
+  * Credit to Jaroslav Jindrak <dzej...@gmail.com>
+
+-------------------------------------------------------------------

New:
----
  sudo-1.9.9-honor-T_opt.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sudo.spec ++++++
--- /var/tmp/diff_new_pack.Wl9VxG/_old  2022-03-11 11:36:23.194275749 +0100
+++ /var/tmp/diff_new_pack.Wl9VxG/_new  2022-03-11 11:36:23.202275758 +0100
@@ -39,6 +39,7 @@
 # PATCH-OPENSUSE: the "SUSE" branding of the default sudo config
 Patch0:         sudo-sudoers.patch
 Patch1:         feature-upstream-restrict-sudo-U-other-l.patch
+Patch2:         sudo-1.9.9-honor-T_opt.patch
 BuildRequires:  audit-devel
 BuildRequires:  cyrus-sasl-devel
 BuildRequires:  groff

++++++ sudo-1.9.9-honor-T_opt.patch ++++++
>From 1f3815c4fb3f282250ff30626979d224e30b4b05 Mon Sep 17 00:00:00 2001
From: Jaroslav Jindrak <dzej...@gmail.com>
Date: Wed, 9 Feb 2022 17:37:26 +0100
Subject: [PATCH] Do not unset user timeout when no default timeout is set.

---
 plugins/sudoers/policy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/sudoers/policy.c b/plugins/sudoers/policy.c
index 26c4be3fe..0482b58dd 100644
--- a/plugins/sudoers/policy.c
+++ b/plugins/sudoers/policy.c
@@ -865,7 +865,7 @@ sudoers_policy_store_result(bool accepted, char *argv[], 
char *envp[],
 
     if (def_command_timeout > 0 || user_timeout > 0) {
        int timeout = user_timeout;
-       if (timeout == 0 || def_command_timeout < timeout)
+    if (timeout == 0 || (def_command_timeout > 0 && def_command_timeout < 
timeout))
            timeout = def_command_timeout;
        if (asprintf(&command_info[info_len++], "timeout=%u", timeout) == -1)
            goto oom;

Reply via email to