* syscalls.cc (stat_worker): Fix conditional which still allowed
successful stat'ing of non-existant files.
This commit is contained in:
parent
b25c2ad730
commit
9ddfe5a04a
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Apr 5 22:41:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* syscalls.cc (stat_worker): Fix conditional which still allowed
|
||||||
|
successful stat'ing of non-existant files.
|
||||||
|
|
||||||
Wed Apr 4 10:37:44 2001 Christopher Faylor <cgf@cygnus.com>
|
Wed Apr 4 10:37:44 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* child_info.h: Bump magic number for fork/exec/spawn.
|
* child_info.h: Bump magic number for fork/exec/spawn.
|
||||||
|
|
|
@ -1084,8 +1084,8 @@ stat_worker (const char *caller, const char *name, struct stat *buf,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (atts != -1 || (!oret && get_errno () != ENOENT
|
if (atts != -1 && (oret || (!oret && get_errno () != ENOENT
|
||||||
&& get_errno () != ENOSHARE))
|
&& get_errno () != ENOSHARE)))
|
||||||
{
|
{
|
||||||
/* Unfortunately, the above open may fail if the file exists, though.
|
/* Unfortunately, the above open may fail if the file exists, though.
|
||||||
So we have to care for this case here, too. */
|
So we have to care for this case here, too. */
|
||||||
|
|
Loading…
Reference in New Issue