Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package pinentry-rofi for openSUSE:Factory checked in at 2026-09-17 16:59:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pinentry-rofi (Old) and /work/SRC/openSUSE:Factory/.pinentry-rofi.new.383539 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pinentry-rofi" Thu Sep 17 16:59:46 2026 rev:4 rq:1378511 version:3.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/pinentry-rofi/pinentry-rofi.changes 2025-09-15 19:56:36.816441895 +0200 +++ /work/SRC/openSUSE:Factory/.pinentry-rofi.new.383539/pinentry-rofi.changes 2026-09-17 16:59:48.664100248 +0200 @@ -1,0 +2,8 @@ +Wed Sep 16 20:30:07 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to version 3.1.0: + * Allow disabling debug logging via DISABLE_LOGGING + * Make logging actually secure (mode 0600, redact PIN data) + * Handle GETINFO pid + +------------------------------------------------------------------- Old: ---- pinentry-rofi-2.1.0.tar.gz New: ---- pinentry-rofi-3.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pinentry-rofi.spec ++++++ --- /var/tmp/diff_new_pack.fmMDC0/_old 2026-09-17 16:59:49.421131972 +0200 +++ /var/tmp/diff_new_pack.fmMDC0/_new 2026-09-17 16:59:49.423132056 +0200 @@ -17,16 +17,16 @@ Name: pinentry-rofi -Version: 2.1.0 +Version: 3.1.0 Release: 0 Summary: Rofi frontend to pinentry License: GPL-3.0-or-later+ URL: https://git.sr.ht/~mcepl/pinentry-rofi Source0: pinentry-rofi-%{version}.tar.gz BuildRequires: lua -Requires: rofi-launcher -Requires: lua Requires: gpg +Requires: lua +Requires: rofi-launcher BuildArch: noarch %description @@ -42,7 +42,7 @@ need to use the full path to the binary. %prep -%setup -q -n %{name}-%{version} +%setup -q %build ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.fmMDC0/_old 2026-09-17 16:59:49.458133523 +0200 +++ /var/tmp/diff_new_pack.fmMDC0/_new 2026-09-17 16:59:49.462133690 +0200 @@ -1,5 +1,5 @@ -mtime: 1757917854 -commit: 39ebd378f61ce81e9b309a75edcf2e9878e3ef2b70410b5ade0205a287eaa3ba +mtime: 1789594062 +commit: e70a2158348861df80de086104814412aaf59a53ee3380de32ee2284341f75e1 url: https://src.opensuse.org/mcepl/pinentry-rofi.git revision: factory ++++++ _service ++++++ --- /var/tmp/diff_new_pack.fmMDC0/_old 2026-09-17 16:59:49.487134738 +0200 +++ /var/tmp/diff_new_pack.fmMDC0/_new 2026-09-17 16:59:49.490134864 +0200 @@ -3,10 +3,9 @@ <param name="url">https://git.sr.ht/~mcepl/pinentry-rofi</param> <param name="scm">git</param> <param name="exclude">.git*</param> - <param name="versionformat">@PARENT_TAG@+git.%ct.%h</param> + <param name="revision">v3.1.0</param> + <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> - <param name="changesgenerate">enable</param> - <param name="changesauthor">[email protected]</param> </service> <service name="recompress" mode="manual"> <param name="file">*.tar</param> ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.fmMDC0/_old 2026-09-17 16:59:49.523136247 +0200 +++ /var/tmp/diff_new_pack.fmMDC0/_new 2026-09-17 16:59:49.526136373 +0200 @@ -1,6 +1,5 @@ <servicedata> <service name="tar_scm"> <param name="url">https://git.sr.ht/~mcepl/pinentry-rofi</param> - <param name="changesrevision">1f7c4e6932c9d407ae937484b9aa4bb0cfa41b63</param></service></servicedata> -(No newline at EOF) + <param name="changesrevision">dd8d2927fd388e1570e3a966e3c261e1bbcbae8e</param></service></servicedata> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-09-16 23:27:42.000000000 +0200 @@ -0,0 +1,6 @@ +.osc +_scmsync.obsinfo +.assets/ +pinentry-rofi/ +_buildconfig-* +_buildinfo-*.xml ++++++ pinentry-rofi-2.1.0.tar.gz -> pinentry-rofi-3.1.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pinentry-rofi-2.1.0/.editorconfig new/pinentry-rofi-3.1.0/.editorconfig --- old/pinentry-rofi-2.1.0/.editorconfig 1970-01-01 01:00:00.000000000 +0100 +++ new/pinentry-rofi-3.1.0/.editorconfig 2026-03-10 15:50:42.000000000 +0100 @@ -0,0 +1,11 @@ +# http://editorconfig.org + +root = true + +[*.lua] +indent_style = space +indent_size = 2 + +[.gitlab-ci.yml] +indent_style = space +indent_size = 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pinentry-rofi-2.1.0/pinentry-rofi.lua new/pinentry-rofi-3.1.0/pinentry-rofi.lua --- old/pinentry-rofi-2.1.0/pinentry-rofi.lua 2025-09-14 23:51:12.000000000 +0200 +++ new/pinentry-rofi-3.1.0/pinentry-rofi.lua 2026-03-10 15:50:42.000000000 +0100 @@ -6,7 +6,7 @@ -- --- Configuration --- local LOG_FILE = string.format("/tmp/pinentry-log-%s.txt", os.getenv("USER") or "unknown") -- To disable logging, change the next line to 'true' -local DISABLE_LOGGING = false +local DISABLE_LOGGING = os.getenv("DISABLE_LOGGING") ~= nil -- --- State Variables --- local gpg_state = { @@ -17,20 +17,52 @@ env = {} -- Table to store environment variables } +-- --- Internal functions --- +local function get_pid() + local f = io.open("/proc/self/status", "r") + if not f then return nil end + + for line in f:lines() do + local pid = line:match("^Pid:%s+(%d+)") + if pid then + f:close() + return pid + end + end + + f:close() + return nil +end + -- --- Logger --- -local function log(msg) - if not DISABLE_LOGGING then - local file = io.open(LOG_FILE, "a") - if file then - file:write(string.format("[%s] %s\n", os.date("%Y-%m-%d %H:%M:%S"), msg)) - file:close() +local log_file +local function init_log() + if DISABLE_LOGGING then return end + if not log_file then + log_file = io.open(LOG_FILE, "a") + if log_file then + log_file:setvbuf("line") + os.execute(("chmod 600 %q"):format(LOG_FILE)) end end end +local function log(msg) + if DISABLE_LOGGING then return end + init_log() + if log_file then + log_file:write(string.format("[%s] %s\n", + os.date("%Y-%m-%d %H:%M:%S"), msg)) + end +end + -- --- Assuan Protocol Helper --- local function assuan_send(msg) - log("SEND: " .. msg) + if msg:match("^D ") then + log("SEND: D [REDACTED]") + else + log("SEND: " .. msg) + end print(msg) io.stdout:flush() end @@ -124,6 +156,13 @@ elseif cmd == "GETINFO" then if arg == "version" then assuan_send("D " .. gpg_state.version) + elseif arg == "pid" then + local self_pid = get_pid() + if self_pid then + assuan_send("D " .. self_pid) + else + log("WARN: Could not determine PID") + end end assuan_send("OK") elseif cmd == "GETPIN" then @@ -142,10 +181,9 @@ end -- --- Execution Guard --- -os.execute("umask 0077") local sess_type = os.getenv("XDG_SESSION_TYPE") or "" if sess_type ~= "tty" then main() else os.execute("pinentry-tty") -end \ No newline at end of file +end
