diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-16 21:24:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-16 21:24:16 +0000 |
commit | d64e9f4e33f94637a33c70fbaad8b80a72b06d2f (patch) | |
tree | f149e543b062d694bda996611288f06bbcf0ce51 /postfix-model.lua | |
parent | ccdd082c5fe3434aa9f069f6bd634ea7642d9c61 (diff) | |
download | acf-postfix-d64e9f4e33f94637a33c70fbaad8b80a72b06d2f.tar.bz2 acf-postfix-d64e9f4e33f94637a33c70fbaad8b80a72b06d2f.tar.xz |
Tested by removing expected packages, files, and directories. Fixed resulting bugs.
git-svn-id: svn://svn.alpinelinux.org/acf/postfix/trunk@1683 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'postfix-model.lua')
-rw-r--r-- | postfix-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfix-model.lua b/postfix-model.lua index 87e6a00..57cdc9b 100644 --- a/postfix-model.lua +++ b/postfix-model.lua @@ -35,8 +35,8 @@ function getfilelist() local listed_files = {} for i,name in ipairs(filelist) do - local filedetails = fs.stat(name) - table.insert ( listed_files , {filename=name, mtime=filedetails.mtime, filesize=filedetails.size} ) + local filedetails = fs.stat(name) or {} + table.insert ( listed_files , {filename=name, mtime=filedetails.mtime or "---", filesize=filedetails.size or "0"} ) end table.sort(listed_files, function (a,b) return (a.filename < b.filename) end ) |