Jason Franklin wrote:

> Currently, the "term_start()" function will give an error when
> a non-existent directory is passed to its "cwd" option.  The call will not
> fail, however, when the directory exists but is not accessible by the
> current user.  It would be nice to be able to recover from this error.
> 
> This patch uses "mch_access()" to check for both the existence and the 
> accessibility of the directory.
> 
> A test, which currently fails, is included in the patch. This seems to
> work on Ubuntu 18.04, but I haven't tested the change on other systems.

Can you extend the test with checking for a writable+executable file
(not a directory)?  I think you should not replace mch_isdir() with
mch_access() but have both checks.


-- 
hundred-and-one symptoms of being an internet addict:
211. Your husband leaves you...taking the computer with him and you
     call him crying, and beg him to bring the computer back.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui