projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5ecd5f5
)
Merge pull request #798 from thoto/feature_lstat
author
Daniel Dickinson
<cshoredaniel@users.noreply.github.com>
Tue, 7 Feb 2017 20:56:02 +0000
(15:56 -0500)
committer
GitHub
<noreply@github.com>
Tue, 7 Feb 2017 20:56:02 +0000
(15:56 -0500)
luci-lib-nixio: nixio_lstat calls stat instead of lstat
libs/luci-lib-nixio/src/fs.c
patch
|
blob
|
history
diff --git
a/libs/luci-lib-nixio/src/fs.c
b/libs/luci-lib-nixio/src/fs.c
index 12ca111ac0eb8949667690e9ce520b8bd3109c08..ba184ed1192cf284f818a64b0acc60ce1f9e5ad6 100644
(file)
--- 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 (
l
stat(luaL_checkstring(L, 1), &buf)) {
return nixio__perror(L);
} else {
nixio__push_stat(L, &buf);