summaryrefslogtreecommitdiffstats
path: root/tinydns-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-26 21:54:28 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-26 21:54:28 +0000
commitcab7550fcce4f45e848c51c50299e23cd7657e14 (patch)
tree3e73e777659a3a2f6836becbe8268cb1021e33be /tinydns-model.lua
parent619cbb8387c698f3b75e6d76eb8f4ee3a24cca9e (diff)
downloadacf-tinydns-cab7550fcce4f45e848c51c50299e23cd7657e14.tar.bz2
acf-tinydns-cab7550fcce4f45e848c51c50299e23cd7657e14.tar.xz
More work to remove unnecessary popen calls.
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1696 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-model.lua')
-rw-r--r--tinydns-model.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 602f416..2f40d98 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -309,9 +309,7 @@ function remove_file(self, path, userid)
if not (fs.is_file(path)) then
errtxt = "File doesn't exist!"
elseif (validfilename(path)) then
- local cmd, errors = io.popen( "/bin/rm " .. format.escapespecialcharacters(path), r )
- local cmdoutput = cmd:read("*a")
- cmd:close()
+ os.remove(path)
success = "File Deleted"
else
errtxt = "Not a valid filename!"