Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2025 08:24:51 +0000
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 75dc15b0f6ae - main - security/lxqt-sudo: Fix core dmp using doas
Message-ID:  <6937dcd3.2f804.1396326b@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75dc15b0f6aeed975525463d9877f10f62e39758

commit 75dc15b0f6aeed975525463d9877f10f62e39758
Author:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
AuthorDate: 2025-12-09 08:24:17 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2025-12-09 08:24:17 +0000

    security/lxqt-sudo: Fix core dmp using doas
    
    With hat:       lxqt
---
 security/lxqt-sudo/Makefile             |  2 +-
 security/lxqt-sudo/files/patch-sudo.cpp | 21 +++++----------------
 2 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/security/lxqt-sudo/Makefile b/security/lxqt-sudo/Makefile
index 8a2dd2d5bb99..751cf33cff28 100644
--- a/security/lxqt-sudo/Makefile
+++ b/security/lxqt-sudo/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	lxqt-sudo
 PORTVERSION=	2.3.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	LXQT
 
diff --git a/security/lxqt-sudo/files/patch-sudo.cpp b/security/lxqt-sudo/files/patch-sudo.cpp
index 4f710f0251e1..93057cc863a6 100644
--- a/security/lxqt-sudo/files/patch-sudo.cpp
+++ b/security/lxqt-sudo/files/patch-sudo.cpp
@@ -1,4 +1,4 @@
---- sudo.cpp.orig	2023-04-15 15:54:02 UTC
+--- sudo.cpp.orig	2025-11-05 12:14:34 UTC
 +++ sudo.cpp
 @@ -44,7 +44,7 @@
  #else
@@ -19,18 +19,7 @@
      const QString doas_prog{QStringLiteral(LXQTSUDO_DOAS)};
      const QString pwd_prompt_end{QStringLiteral(": ")};
      const QChar nl{QLatin1Char('\n')};
-@@ -194,7 +197,9 @@ int Sudo::main()
-         } else if (QStringLiteral("-a") == arg1 || QStringLiteral("--doas") == arg1)
-         {
-             mBackend = BACK_DOAS;
--            mArgs.removeAt(0);
-+            mArgs.removeAt(0); //remove -m
-+            mArgs.removeAt(1); //remove root
-+            mArgs.removeAt(2); // remove -c
-         }
-     }
-     //any other arguments we simply forward to su/sudo
-@@ -265,7 +270,7 @@ void Sudo::child()
+@@ -272,7 +275,7 @@ void Sudo::child()
      switch (mBackend)
      {
          case BACK_SU:
@@ -39,7 +28,7 @@
              break;
          case BACK_SUDO:
              params_cnt += 3; // --preserve-env=... /bin/sh -c for sudo
-@@ -295,8 +300,10 @@ void Sudo::child()
+@@ -302,8 +305,10 @@ void Sudo::child()
              break;
          case BACK_DOAS:
              *(param_arg++) = "/bin/sh";
@@ -49,9 +38,9 @@
 +           *(param_arg++) = "-m";
 +           *(param_arg++) = "root";
          case BACK_NONE:
-             env_workarounds();
+             env_workarounds(mQuiet);
              break;
-@@ -404,7 +411,8 @@ int Sudo::parent()
+@@ -414,7 +419,8 @@ int Sudo::parent()
                  }
              } else
              {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6937dcd3.2f804.1396326b>