Merge pull request #798 from thoto/feature_lstat

luci-lib-nixio: nixio_lstat calls stat instead of lstat
This commit is contained in:
Daniel Dickinson 2017-02-07 15:56:02 -05:00 committed by GitHub
commit 5180a5bb8b

View 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);