diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:03:14 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 14:03:14 +0000 |
commit | 51bea6689631af38032a384d6eaa8488a068cfee (patch) | |
tree | e32597fb5a583118f2b5cb0692d4b34e569e8329 /freeradius3-model.lua | |
parent | ead073ce065f691630cb7a3595dbeb8377b70da3 (diff) | |
download | acf-freeradius3-51bea6689631af38032a384d6eaa8488a068cfee.tar.bz2 acf-freeradius3-51bea6689631af38032a384d6eaa8488a068cfee.tar.xz |
Change file actions filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions
Diffstat (limited to 'freeradius3-model.lua')
-rw-r--r-- | freeradius3-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/freeradius3-model.lua b/freeradius3-model.lua index 84bd7e5..aad8eae 100644 --- a/freeradius3-model.lua +++ b/freeradius3-model.lua @@ -422,7 +422,7 @@ end function mymodule.list_files() local retval = {} for file in fs.find(null, baseurl) do - local details = fs.stat(file) + local details = posix.stat(file) if details.type == "regular" then details.filename = file table.insert(retval, details) @@ -488,7 +488,7 @@ function mymodule.list_passwd_files() local files,errtxt = get_passwd_files() if files then for i,file in ipairs(files) do - local details = fs.stat(file) + local details = posix.stat(file) details.filename = file table.insert(retval, details) end @@ -661,7 +661,7 @@ function mymodule.list_macauth_files() local files,errtxt = get_macauth_files() if files then for i,file in ipairs(files) do - local details = fs.stat(file) + local details = posix.stat(file) details.filename = file table.insert(retval, details) end |