changed stat to lstat in nixio_lstat function
Signed-off-by: Thorsten M. <thoto@devtal.de>
This commit is contained in:
parent
dc8ef82e62
commit
71f55447bf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue