From 71f55447bfec648803c09915caf1012be3705b2e Mon Sep 17 00:00:00 2001 From: Thorsten M Date: Fri, 16 Sep 2016 11:06:12 +0200 Subject: [PATCH] changed stat to lstat in nixio_lstat function Signed-off-by: Thorsten M. --- libs/luci-lib-nixio/src/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/luci-lib-nixio/src/fs.c b/libs/luci-lib-nixio/src/fs.c index 12ca111ac0..ba184ed119 100644 --- a/libs/luci-lib-nixio/src/fs.c +++ b/libs/luci-lib-nixio/src/fs.c @@ -355,7 +355,7 @@ static int nixio_stat(lua_State *L) { static int nixio_lstat(lua_State *L) { nixio_stat_t buf; - if (stat(luaL_checkstring(L, 1), &buf)) { + if (lstat(luaL_checkstring(L, 1), &buf)) { return nixio__perror(L); } else { nixio__push_stat(L, &buf); -- 2.30.2