From: Thorsten M Date: Fri, 16 Sep 2016 09:06:12 +0000 (+0200) Subject: changed stat to lstat in nixio_lstat function X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=71f55447bfec648803c09915caf1012be3705b2e;p=project%2Fluci.git changed stat to lstat in nixio_lstat function Signed-off-by: Thorsten M. --- 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);