mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
* path.cc (symlink_info::check): Make sure to restart only once.
This commit is contained in:
parent
6ff06a0726
commit
b12d6d10ad
@ -1,3 +1,7 @@
|
|||||||
|
2010-04-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* path.cc (symlink_info::check): Make sure to restart only once.
|
||||||
|
|
||||||
2010-04-22 Corinna Vinschen <corinna@vinschen.de>
|
2010-04-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE
|
* mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE
|
||||||
|
@ -2189,6 +2189,7 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
|
|||||||
|
|
||||||
/* This label is used in case we encounter a FS which only handles
|
/* This label is used in case we encounter a FS which only handles
|
||||||
DOS paths. See below. */
|
DOS paths. See below. */
|
||||||
|
bool restarted = false;
|
||||||
restart:
|
restart:
|
||||||
|
|
||||||
h = NULL;
|
h = NULL;
|
||||||
@ -2294,7 +2295,7 @@ restart:
|
|||||||
we encountered a STATUS_OBJECT_NAME_NOT_FOUND *and* we didn't
|
we encountered a STATUS_OBJECT_NAME_NOT_FOUND *and* we didn't
|
||||||
already attach a suffix *and* the above special case for UDF
|
already attach a suffix *and* the above special case for UDF
|
||||||
on XP didn't succeeed. */
|
on XP didn't succeeed. */
|
||||||
if (!*ext_here && !fs_update_called)
|
if (!restarted && !*ext_here && !fs_update_called)
|
||||||
{
|
{
|
||||||
/* Check for leading space or trailing dot or space in
|
/* Check for leading space or trailing dot or space in
|
||||||
last component. */
|
last component. */
|
||||||
@ -2317,6 +2318,7 @@ restart:
|
|||||||
memmove (pbeg, pbeg + 1, --pend - pbeg);
|
memmove (pbeg, pbeg + 1, --pend - pbeg);
|
||||||
*pend = '\0';
|
*pend = '\0';
|
||||||
/* ...try again. */
|
/* ...try again. */
|
||||||
|
restarted = true;
|
||||||
goto restart;
|
goto restart;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user