Closed gangsterofboats closed 3 years ago
There are actually a few more issues on this:
get_full_path()
should return a path with forwardslashes instead of backslashes (note other code doesn't check for forwardslashes at all).dirname[0] != '/'
does not work on Windows. PathIsRelativeA()
is suggested.<>:"/\|?*
, as well as all control characters.I am working on a fix at the moment.
Fixed and uploaded: https://files.lhmouse.com/nano-win/nano-win_9371_v5.4-9-gef33c2a8.7z
Thanks.
The previous build may crash or hang if the backupdir
is set to a path ending with a slash (forward or backward). A new build has been uploadad: https://files.lhmouse.com/nano-win/nano-win_9371_v5.4-9-g8ad13081.7z
If backupdir is set to, I think, any Windows path, Nano cannot backup to that path, but will write to the Home directory instead. Looking at the source, though not really being good at C, I think the problem lies about lines 1420 to 1430 in the files.c file. It only replaces the slashes in the path, but Windows also cannot have colons in filenames.