summaryrefslogtreecommitdiffstats
path: root/openssh-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-07 17:31:24 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-07 17:31:24 +0000
commit5fd5c21d3343f3d034d8abaa3b1535387fb1b07a (patch)
tree5025d0684b59fc97a746a74b88bad6a623ae011f /openssh-model.lua
parent352503d094aac9c2c234d24a3ae7fe5d95248525 (diff)
downloadacf-openssh-5fd5c21d3343f3d034d8abaa3b1535387fb1b07a.tar.bz2
acf-openssh-5fd5c21d3343f3d034d8abaa3b1535387fb1b07a.tar.xz
Modified modelfunctions library to include validation in get/setfiledetails. Modified all uses to validate the file name - this was a major security hole.
git-svn-id: svn://svn.alpinelinux.org/acf/openssh/trunk@1542 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'openssh-model.lua')
-rw-r--r--openssh-model.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/openssh-model.lua b/openssh-model.lua
index 71bebdd..93997e4 100644
--- a/openssh-model.lua
+++ b/openssh-model.lua
@@ -58,8 +58,7 @@ function getconfigfile()
end
function setconfigfile(filedetails)
- filedetails.value.filename.value = configfile
- return modelfunctions.setfiledetails(filedetails)
+ return modelfunctions.setfiledetails(filedetails, {configfile})
end
function read_config()