vim-patch:8.2.1219: symlink not followed if dirname ends in //

Problem:    Symlink not followed if dirname ends in //.
Solution:   Resolve symlink earlier. (Tomáš Janoušek, closes vim/vim#6454)
5966ea105e
This commit is contained in:
Jan Edmund Lazo
2020-10-16 23:02:13 -04:00
parent 1d736a1ae2
commit a2e1bcd176
3 changed files with 56 additions and 25 deletions

View File

@@ -3593,7 +3593,7 @@ restore_backup:
* the backup file our 'original' file.
*/
if (*p_pm && dobackup) {
char *org = modname((char *)fname, (char *)p_pm, FALSE);
char *const org = modname((char *)fname, (char *)p_pm, false);
if (backup != NULL) {
/*