summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-09-21 15:58:11 +0000
committerTed Trask <ttrask01@yahoo.com>2009-09-21 15:58:11 +0000
commitb76b8efeb3e4843bfb928a0a26bb828edd3e14d3 (patch)
tree74100d8da171650024afee4def5e45432cce0135
parent0bb77f99d78599fd5a55856eb948b608385f7a35 (diff)
downloadacf-ppp-b76b8efeb3e4843bfb928a0a26bb828edd3e14d3.tar.bz2
acf-ppp-b76b8efeb3e4843bfb928a0a26bb828edd3e14d3.tar.xz
Chmod 600 on secrets files, bumped version to 0.1.2v0.1.2
-rw-r--r--Makefile2
-rw-r--r--ppp-model.lua8
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e5c16f7..5b173d7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
APP_NAME=ppp
PACKAGE=acf-$(APP_NAME)
-VERSION=0.1.1
+VERSION=0.1.2
APP_DIST=\
ppp* \
diff --git a/ppp-model.lua b/ppp-model.lua
index 31f7365..8392ea5 100644
--- a/ppp-model.lua
+++ b/ppp-model.lua
@@ -48,7 +48,9 @@ function read_papfiledetails()
end
function update_papfiledetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, {papfile})
+ local retval = modelfunctions.setfiledetails(filedetails, {papfile})
+ posix.chmod(papfile, "rw-------")
+ return retval
end
function read_chapfiledetails()
@@ -56,7 +58,9 @@ function read_chapfiledetails()
end
function update_chapfiledetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, {chapfile})
+ local retval = modelfunctions.setfiledetails(filedetails, {chapfile})
+ posix.chmod(chapfile, "rw-------")
+ return retval
end
function list_peers()