salass00 / smb2fs

SMB2 file system client
GNU General Public License v2.0
26 stars 6 forks source link

"cd .." in the shell #19

Open BSzili opened 1 year ago

BSzili commented 1 year ago

You can CD into the ".." directory in the Shell which does work, but ".." is added to the path every time you do this. Although "cd /" should be used instead, it would be nice to normalize the path in this case. https://postimg.cc/zLPtpyqM

salass00 commented 1 year ago

The problem is that "cd .." shouldn't be working in the first place. If FbxLockName2Path() in filesysbox is modified to return FALSE if the path contains any '.' or '..' components then it should fix this issue more or less entirely.

BSzili commented 1 year ago

You are right, it's a better solution to filter these out, and allow only Amiga-style paths.