summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-nixio
diff options
context:
space:
mode:
authorThorsten M <thoto@thoto.net>2016-09-16 11:06:12 +0200
committerJo-Philipp Wich <jo@mein.io>2017-06-01 00:17:19 +0200
commit71f55447bfec648803c09915caf1012be3705b2e (patch)
treecab2849010b036da9ced7de5de5deb5fbb9baf98 /libs/luci-lib-nixio
parentdc8ef82e6297e6fc1c4413eb276467c65d2b5e8d (diff)
changed stat to lstat in nixio_lstat function
Signed-off-by: Thorsten M. <thoto@devtal.de>
Diffstat (limited to 'libs/luci-lib-nixio')
-rw-r--r--libs/luci-lib-nixio/src/fs.c2
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);