On Tue, Mar 18, 2008 at 10:12:09AM +0100, Jakub Narebski wrote: > On Tue, 18 March 2008, Petr Baudis wrote: > > The idea is nice, but I'm surely missing something obvious again - why > > do you use lstat() as opposed to stat()? > > Because in my home installation of gitweb (for tests) I have > /home/local/scm/git.git symlinked to /home/jnareb/git/.git > And I want to follow changes in repository; link itself doesn't > change. Which means you have that backwards, since "lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to." (from linux manpage) Gruesse, -- Frank Lichtenheld <frank@xxxxxxxxxxxxxx> www: http://www.djpig.de/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html