Re: [PATCH] unpack-trees.c: check return value of lstat()
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Mar 6, 2011, 19:29 UTC
- Message-ID
- <vpqfwr0hwu0.fsf@bauges.imag.fr>
- In-Reply-To
- <201103062013.52793.tboegi@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
> + if (!lstat(path, &st)) > + return check_ok_to_remove(path, len, DT_UNKNOWN, NULL, &st, > + error_type, o); > } else if (!lstat(ce->name, &st))
What happens if lstat returns a non-0 value?
Anyway, this seems to have been fixed by a93e53018 (Wed Jan 12 20:28:09 2011, unpack-trees: handle lstat failure for existing file) already.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/