Make chdir-safer.c more efficient on a system with no symlinks.
authorJim Meyering <meyering@redhat.com>
Sat, 10 May 2008 13:19:43 +0000 (15:19 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 10 May 2008 13:43:13 +0000 (15:43 +0200)
commitff0b56d949424acc0ea32b546bf8b32f98153d63
tree1bf05d42606233b906cab2667c9efbe38abbcea1
parent5b66f060813b0b6042c0814ec1ab06e65f775063
Make chdir-safer.c more efficient on a system with no symlinks.

* lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
also if ELOOP is zero.  Suggested by Bruno Haible.
ChangeLog
lib/chdir-safer.c