changed stat to lstat in nixio_lstat function 798/head
authorThorsten M <thoto@thoto.net>
Fri, 16 Sep 2016 09:06:12 +0000 (11:06 +0200)
committerThorsten M <thoto@thoto.net>
Fri, 16 Sep 2016 09:06:12 +0000 (11:06 +0200)
Signed-off-by: Thorsten M. <thoto@devtal.de>
libs/luci-lib-nixio/src/fs.c

index 12ca111ac0eb8949667690e9ce520b8bd3109c08..ba184ed1192cf284f818a64b0acc60ce1f9e5ad6 100644 (file)
@@ -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);