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

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/syst
                   |                            |em/dolphin/-/commit/19c4204
                   |                            |8fdab8f9236104b91c4befc70f4
                   |                            |6866f2
             Status|ASSIGNED                    |RESOLVED
            Version|                            |26.12.0
  Fixed/Implemented|                            |
                 In|                            |
         Resolution|---                         |FIXED

--- Comment #2 from Méven <[email protected]> ---
Git commit 19c42048fdab8f9236104b91c4befc70f46866f2 by Méven Car, on behalf of
Mohanraj Velayutham.
Committed on 14/10/2026 at 12:00.
Pushed by meven into branch 'master'.

KDirectoryContentsCounterWorker: pass FTS_NOCHDIR to avoid changing process
working directory

When walking directory hierarchies using fts_open(), fts by default
changes the current working directory as an internal optimization.
Because KDirectoryContentsCounterWorker runs inside a worker thread,
changing the working directory from the thread alters the working
directory of the entire Dolphin process, causing concurrent relative-path
file operations (such as Ark archive creation) to fail.

Pass FTS_NOCHDIR to prevent fts from changing directories during traversal.
FIXED-IN: 26.12.0

M  +2    -2    src/kitemviews/private/kdirectorycontentscounterworker.cpp
M  +3    -1    src/kitemviews/private/kdirectorycontentscounterworker.h
M  +35   -0    src/tests/kfileitemmodelrolesupdatertest.cpp

https://invent.kde.org/system/dolphin/-/commit/19c42048fdab8f9236104b91c4befc70f46866f2

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

Reply via email to