From 8b7c19a299389058d02df673b5322e89abefd651 Mon Sep 17 00:00:00 2001 From: whatdoineed2do Date: Sat, 18 Aug 2018 11:34:03 +0100 Subject: [PATCH] [httpd] allow webdir (htdocs) to be symlink to dir --- src/httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/httpd.c b/src/httpd.c index afc76d75..7f7af451 100644 --- a/src/httpd.c +++ b/src/httpd.c @@ -1624,10 +1624,10 @@ httpd_init(const char *webroot) httpd_exit = 0; DPRINTF(E_DBG, L_HTTPD, "Starting web server with root directory '%s'\n", webroot); - ret = lstat(webroot, &sb); + ret = stat(webroot, &sb); if (ret < 0) { - DPRINTF(E_LOG, L_HTTPD, "Could not lstat() web root directory '%s': %s\n", webroot, strerror(errno)); + DPRINTF(E_LOG, L_HTTPD, "Could not stat() web root directory '%s': %s\n", webroot, strerror(errno)); return -1; }