From: Adam Dickmeiss Date: Tue, 9 Apr 1996 06:49:18 +0000 (+0000) Subject: Traversal of directories doesn't follow symbolic links. X-Git-Tag: ZEBRA.1.0~502 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=95ff8b9c4821c47dad5d3f2e38ae0d3f6e461f74;p=idzebra-moved-to-github.git Traversal of directories doesn't follow symbolic links. --- diff --git a/index/dir.c b/index/dir.c index 0c82aae..0d07384 100644 --- a/index/dir.c +++ b/index/dir.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dir.c,v $ - * Revision 1.13 1996-03-21 14:50:08 adam + * Revision 1.14 1996-04-09 06:49:18 adam + * Traversal of directories doesn't follow symbolic links. + * + * Revision 1.13 1996/03/21 14:50:08 adam * File update uses modify-time instead of change-time. * * Revision 1.12 1996/02/05 12:29:55 adam @@ -99,7 +102,7 @@ struct dir_entry *dir_open (const char *rep) entry = entry_n; } strcpy (path + pathpos, dent->d_name); - stat (path, &finfo); + lstat (path, &finfo); switch (finfo.st_mode & S_IFMT) { case S_IFREG: