diff options
author | Thorsten M <thoto@thoto.net> | 2016-09-16 11:06:12 +0200 |
---|---|---|
committer | Thorsten M <thoto@thoto.net> | 2016-09-16 11:06:12 +0200 |
commit | 528f7ab5127dfd7cead0bba7891a41acd79757e9 (patch) | |
tree | 1c2a46f23997d9347585435ed24dff1c7684d92e /libs/luci-lib-nixio/src/fs.c | |
parent | 44bf3f0c1640040561306caff39f34ac916b4357 (diff) |
changed stat to lstat in nixio_lstat function
Signed-off-by: Thorsten M. <thoto@devtal.de>
Diffstat (limited to 'libs/luci-lib-nixio/src/fs.c')
-rw-r--r-- | libs/luci-lib-nixio/src/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/luci-lib-nixio/src/fs.c b/libs/luci-lib-nixio/src/fs.c index 12ca111ac..ba184ed11 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); |