From 868be7c7183b179ddab351fd32790d843b6854c7 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 13 Jan 2009 16:01:06 +0000 Subject: 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 --- openvpn-model.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'openvpn-model.lua') 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" -- cgit v1.2.3