Created attachment 7893 [details] git-am fix for 4.0.0. From the commit I added to master (56b752512597acaffa94a979ef9140760e0f5cf3) Sigh :-(. Removing optimization prematurely is the root of all evil :-(. Sorry for the mistake, but the LastDir singleton cache in vfs_ChDir() actually plays an important role. When we're processing a stream of SMB1/SMB2/SMB3 requests we don't want to add a chdir()/getcwd() system call pair on every request if they're all on the same connection and dealing with the same base path. I did some testing with a program that times 1,000,000 chdir() requests vs. 1,000,000 strcmp requests and it's a penalty of 10x doing the system calls. Just because it's old code, doesn't mean it's bad :-(. Jeremy.
Comment on attachment 7893 [details] git-am fix for 4.0.0. The real fix for this is to work with absolute paths always, but this looks fine given we're not going to make that switch for 4.0 :-)
Re-assigning to Karolin for inclusion in 4.0.0. Thanks ! Jeremy.
Pushed to v4-0-test. Closing out bug report. Thanks!