diff options
-rw-r--r-- | src/metaentry.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/metaentry.c b/src/metaentry.c index 146fcf9..94167e7 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -351,7 +351,6 @@ normalize_path(const char *orig) static void mentries_recurse(const char *path, struct metahash *mhash, msettings *st) { - struct stat sbuf; struct metaentry *mentry; char tpath[PATH_MAX]; DIR *dir; @@ -360,19 +359,13 @@ mentries_recurse(const char *path, struct metahash *mhash, msettings *st) if (!path) return; - if (lstat(path, &sbuf)) { - msg(MSG_ERROR, "lstat failed for %s: %s\n", - path, strerror(errno)); - return; - } - mentry = mentry_create(path); if (!mentry) return; mentry_insert(mentry, mhash); - if (S_ISDIR(sbuf.st_mode)) { + if (S_ISDIR(mentry->mode)) { dir = opendir(path); if (!dir) { msg(MSG_ERROR, "opendir failed for %s: %s\n", |