mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
Don't crash if /var/tmp doesn't exist
`xstat` is checked `stat64` crashing the program if the latter returns failure. In this loop, we are trying to find one folder that satisfies the condition, no reason to crash the program if one folder doesn't.
This commit is contained in:
parent
df64d52310
commit
8238afcd89
@ -759,8 +759,7 @@ do_test (void)
|
||||
}
|
||||
|
||||
struct stat64 cstat;
|
||||
xstat (path, &cstat);
|
||||
if (cstat.st_dev == instat.st_dev)
|
||||
if (stat (path, &cstat) != 0 || cstat.st_dev == instat.st_dev)
|
||||
{
|
||||
free (to_free);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user