From cab7550fcce4f45e848c51c50299e23cd7657e14 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 26 Jan 2009 21:54:28 +0000 Subject: More work to remove unnecessary popen calls. git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1696 ab2d0c66-481e-0410-8bed-d214d4d58bed --- tinydns-model.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tinydns-model.lua') 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!" -- cgit v1.2.3