From fb46b4fddcbed311913c642e8a90785da58e3ad0 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 7 Nov 2010 19:14:01 +0200 Subject: [PATCH] * mu-maildir.c: use lstat, not stat in readdir_with_stat_fallback; this fixes issue #28. --- src/mu-maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mu-maildir.c b/src/mu-maildir.c index f65a3c00..b6064496 100644 --- a/src/mu-maildir.c +++ b/src/mu-maildir.c @@ -327,7 +327,7 @@ readdir_with_stat_fallback (DIR* dir, const char* path) /* note, fullpath_s returns a static buffer */ fullpath = fullpath_s (path, entry->d_name); - if (stat (fullpath, &statbuf) != 0) { + if (lstat (fullpath, &statbuf) != 0) { g_warning ("stat failed on %s: %s", fullpath, strerror(errno)); return FALSE;