diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-01-13 16:01:06 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-01-13 16:01:06 +0000 |
commit | 868be7c7183b179ddab351fd32790d843b6854c7 (patch) | |
tree | 47e0f683ae55224747c02f7cefc0b9121dfe44b3 | |
parent | cbaac05f817f17ad6e91ff921b24ce452306a2ff (diff) | |
download | acf-openvpn-868be7c7183b179ddab351fd32790d843b6854c7.tar.bz2 acf-openvpn-868be7c7183b179ddab351fd32790d843b6854c7.tar.xz |
Modified fs.lua to survive nil parameters. Added create_directory and used within create_file and write_file. Reviewed each read_file call to make sure handles nil return value.
git-svn-id: svn://svn.alpinelinux.org/acf/openvpn/trunk@1677 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | openvpn-model.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua index 304b155..8995594 100644 --- a/openvpn-model.lua +++ b/openvpn-model.lua @@ -252,7 +252,6 @@ function create_config(config) end if success then - if not posix.stat(baseurl) then posix.mkdir(baseurl) end fs.create_file(path) else config.errtxt = "Failed to create config" |