Lcd wrote:
> Scenario:
>
> (1) umask 0177
> (2) run Vim
> (3) in Vim run system(), say:
>
> :echo system('ls')
>
> On Linux machines the result is:
>
> E484: Can't open file /tmp/viEkD0f/2
>
> It's easy to see why:
>
> $ ls -ld /tmp/viEkD0f
> drw------- 2 1034 1023 40 Jun 4 13:32 /tmp/viEkD0f/
>
> The code has provisions to deal with this situation, but only on
> systems that don't have mkdtemp(3). Glibc has mkdtemp(3).
Setting umask to that value is like shooting yourself in the foot.
I would not call this a Vim problem.
--
I started out with nothing, and I still have most of it.
-- Michael Davis -- "Tonight Show"
/// 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.