https://bugs.kde.org/show_bug.cgi?id=525805

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwallet-pam/-/commit/06e |ma/kwallet-pam/-/commit/6a2
                   |e5df93e4471c214292a799c07ff |e476dfe2d9498f464c4ae10a522
                   |8ee68362d8                  |edcc665bee

--- Comment #9 from Nate Graham <[email protected]> ---
Git commit 6a2e476dfe2d9498f464c4ae10a522edcc665bee by Nate Graham.
Committed on 26/09/2026 at 02:27.
Pushed by ngraham into branch 'Plasma/6.7'.

Pass the environment to ksecretd unquoted with coreutils >= 9.12

Since coreutils 9.12, env and printenv shell-quote the values they print,
honouring QUOTING_STYLE and defaulting to shell-escape. pam_kwallet_init
pipes env into ksecretd, which putenv()s each line verbatim, so values
that need quoting arrive with the quotes inside them. One of them is
DBUS_SESSION_BUS_ADDRESS: ksecretd cannot reach the session bus and exits
before it unlocks the wallet.

Ask env for literal output. Older versions of env ignore QUOTING_STYLE,
so their output is unchanged, and -u keeps the variable itself out of the
environment handed to ksecretd.

Tested on Slackware -current with coreutils 9.12 at a real SDDM login
(wallet unlocked, no prompt); env output also compared on coreutils 9.7
and 8.32.


(cherry picked from commit 469570531a0ce2994dbe211e7f27834b73e868af)

Co-authored-by: Omid Kordbache <[email protected]>

M  +1    -1    pam_kwallet_init

https://invent.kde.org/plasma/kwallet-pam/-/commit/6a2e476dfe2d9498f464c4ae10a522edcc665bee

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to