* path.cc (symlink_info::check): Clear error on each iteration of extension
check.
This commit is contained in:
parent
6d75cb08b3
commit
e136f5c0e0
@ -1,3 +1,8 @@
|
|||||||
|
Tue Aug 22 13:57:36 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* path.cc (symlink_info::check): Clear error on each iteration of
|
||||||
|
extension check.
|
||||||
|
|
||||||
Tue Aug 22 11:23:59 2000 Christopher Faylor <cgf@cygnus.com>
|
Tue Aug 22 11:23:59 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* Makefile.in: Don't include '.d' file if there are none generated yet.
|
* Makefile.in: Don't include '.d' file if there are none generated yet.
|
||||||
|
@ -2242,7 +2242,6 @@ symlink_info::check (const char *in_path, const suffix_info *suffixes)
|
|||||||
char extbuf[MAX_PATH + 5];
|
char extbuf[MAX_PATH + 5];
|
||||||
const char *path = in_path;
|
const char *path = in_path;
|
||||||
|
|
||||||
error = 0;
|
|
||||||
if (!suffixes)
|
if (!suffixes)
|
||||||
ext_here = NULL;
|
ext_here = NULL;
|
||||||
else if ((known_suffix = has_suffix (in_path, suffixes)) != NULL)
|
else if ((known_suffix = has_suffix (in_path, suffixes)) != NULL)
|
||||||
@ -2258,10 +2257,12 @@ symlink_info::check (const char *in_path, const suffix_info *suffixes)
|
|||||||
|
|
||||||
is_symlink = TRUE;
|
is_symlink = TRUE;
|
||||||
|
|
||||||
|
error = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (!next_suffix (ext_here, suffixes))
|
if (!next_suffix (ext_here, suffixes))
|
||||||
break;
|
break;
|
||||||
|
error = 0;
|
||||||
fileattr = GetFileAttributesA (path);
|
fileattr = GetFileAttributesA (path);
|
||||||
if (fileattr == (DWORD) -1)
|
if (fileattr == (DWORD) -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user