* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
component.
This commit is contained in:
parent
33ef35c8ad
commit
82ae6271ba
@ -1,3 +1,8 @@
|
||||
2005-04-04 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* path.cc (path_conv::check): Only check for PC_NO_ACCESS_CHECK in end
|
||||
component.
|
||||
|
||||
2005-04-04 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges on 9x.
|
||||
|
@ -556,7 +556,6 @@ path_conv::check (const char *src, unsigned opt,
|
||||
error = 0;
|
||||
else if ((error = check_null_empty_str (src)))
|
||||
return;
|
||||
unsigned pflags_or = (opt & PC_NO_ACCESS_CHECK);
|
||||
/* This loop handles symlink expansion. */
|
||||
for (;;)
|
||||
{
|
||||
@ -588,7 +587,8 @@ path_conv::check (const char *src, unsigned opt,
|
||||
sym.contents[0] = '\0';
|
||||
|
||||
int symlen = 0;
|
||||
for (;;)
|
||||
|
||||
for (unsigned pflags_or = opt & PC_NO_ACCESS_CHECK; ; pflags_or = 0)
|
||||
{
|
||||
const suffix_info *suff;
|
||||
char pathbuf[CYG_MAX_PATH];
|
||||
@ -782,7 +782,7 @@ is_virtual_symlink:
|
||||
else
|
||||
break;
|
||||
}
|
||||
else if (sym.error != ENOENT && sym.error != ENOSHARE)
|
||||
else if (sym.error && sym.error != ENOENT && sym.error != ENOSHARE)
|
||||
{
|
||||
error = sym.error;
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user