From 95ff8b9c4821c47dad5d3f2e38ae0d3f6e461f74 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 9 Apr 1996 06:49:18 +0000 Subject: [PATCH] Traversal of directories doesn't follow symbolic links. --- index/dir.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: -- 1.7.10.4