summaryrefslogtreecommitdiffstats
path: root/openvpn-model.lua
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2009-08-10 10:04:36 +0000
committerMika Havela <mika.havela@gmail.com>2009-08-10 10:04:36 +0000
commit4667ee82a89aca7e5187181713005abf1d22f4c6 (patch)
tree8ce12a0ac7a95666b2bf2f30b969a9e4041ad05f /openvpn-model.lua
parente2507e1affe8c092238f88f08a097413ef090e83 (diff)
downloadacf-openvpn-4667ee82a89aca7e5187181713005abf1d22f4c6.tar.bz2
acf-openvpn-4667ee82a89aca7e5187181713005abf1d22f4c6.tar.xz
Fixed bug that caused a file to be called myfileconf (without the . before conf)
Diffstat (limited to 'openvpn-model.lua')
-rw-r--r--openvpn-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/openvpn-model.lua b/openvpn-model.lua
index c324353..3259f29 100644
--- a/openvpn-model.lua
+++ b/openvpn-model.lua
@@ -245,7 +245,7 @@ function create_config(config)
elseif posix.stat(path) then
success = false
config.value.name.errtxt = "File already exists"
- elseif not string.match(path,".*conf") then
+ elseif not string.match(path,".*%.conf") then
success = false
config.value.name.errtxt = "Filename must end with '.conf'"
end