> Repro:
> 
> Eg, the file is \\dir1\dir2\dir3\file. I've r/w access to this file.
> Under, \\dir1, there is folder, eg \\dir1\dir22, which I don't have access 
> right. Then when opening \\dir1\dir2\dir3\file, vim hangs.
> 
> As a comparison, notepad++ does not hang when opening this file.
> 
> I built windows vim tiny to take a look. The issue is here:
> 
> In fname_case of os_win32.c
> 
>       if (ptrue > ptruePrev
>               && (ptruePrev[0] != '.'
>                   || (ptruePrev[1] != NUL
>                       && (ptruePrev[1] != '.' || ptruePrev[2] != NUL)))
>               && (hFind = ### **FindFirstFile**(szTrueNameTemp, &fb))
>                                                     != INVALID_HANDLE_VALUE)
> 
> **FindFirstFile** tries to access files from root dir to current dir, level 
> by level. Because I don't have access right to \\dir1\dir22, when accessing 
> \\dir1\*, the API call just hang.

Does it really hang?  It's supposed to return an error.

-- 
No children may attend school with their breath smelling of "wild onions."
                [real standing law in West Virginia, United States of America]

 /// 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