Since 8e81090789e4cc3ba9e5aa792d4e52971909c894 we're doing chdir() twice, first into conn->connectpath, then into conn->origpath. Before commit 8e81090789e4cc3ba9e5aa792d4e52971909c894 if chdir(conn->connectpath) succeeded, we wouldn't do the second chdir(). Have patch, need bugnumber.
Created attachment 15864 [details] Patch for 4.11 backported from master
Created attachment 15865 [details] Patch for 4.12 cherry-picked from master
Comment on attachment 15864 [details] Patch for 4.11 backported from master Can you fix up the commit message to remove the section: "While at it, simplify the logging logic: if chdir() fails in this core function, just always log is as error including the unix token." as that's not being done in this back-port.
Comment on attachment 15865 [details] Patch for 4.12 cherry-picked from master LGTM.
Created attachment 15868 [details] Patch for 4.11 - Fixed up commit message. Rather than moaning about the commit message being wrong, fix it myself :-).
Reassigning to Karolin for inclusion in 4.11 and 4.12.
(In reply to Ralph Böhme from comment #6) Pushed to autobuild-v4-{11,12}-test.
(In reply to Karolin Seeger from comment #7) Pushed to both branches. Closing out bug report. Thanks!