mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4653: "import autoload" does not check the file name
Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
This commit is contained in:
@@ -2116,7 +2116,7 @@ check_overwrite(
|
||||
// with UNIX it is possible to open a directory
|
||||
if (mch_isdir(ffname))
|
||||
{
|
||||
semsg(_(e_src_is_directory), ffname);
|
||||
semsg(_(e_str_is_directory), ffname);
|
||||
return FAIL;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user