diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-09-29 18:01:28 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-09-29 18:01:28 +0000 |
commit | 6653bf15788592e34d1e5acce850142c15e52b46 (patch) | |
tree | 2303fae9e2fca3c9ee7c25cd2100b5b93a61e5c1 /lib/fs.lua | |
parent | c9c32cd98c25b9cf23c906f0c6a1f7f54527bcd8 (diff) | |
download | acf-core-6653bf15788592e34d1e5acce850142c15e52b46.tar.bz2 acf-core-6653bf15788592e34d1e5acce850142c15e52b46.tar.xz |
Removed getopts library and added functionality to format library as opts_to_table, table_to_opts, parse_configfile2, update_configfile2, get_section, and set_section. New functions work on strings, not files. Modified all code using getopts to use format instead. Fixed nil string bugs in TCPProxy. Fixed forward only bug in DNSCache.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1535 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/fs.lua')
-rw-r--r-- | lib/fs.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -64,7 +64,7 @@ end function write_file ( path, str ) local file = io.open(path, "w") --append a newline char to EOF - str = str .. "\n" + str = string.gsub(str, "\n*$", "\n") if ( file ) then file:write(str) file:close() |