From 51bea6689631af38032a384d6eaa8488a068cfee Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2015 14:03:14 +0000 Subject: Change file actions filesize to size, size and mtime not user-friendly, use posix.stat over fs.stat, use new format functions --- freeradius3-model.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'freeradius3-model.lua') 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 -- cgit v1.2.3