Daniel Richard G
1c0c923ad1
Split g_file_open() into _ro() and _rw() variants
...
Rename g_file_open() to g_file_open_rw(), and add a new g_file_open_ro()
call that wraps the common g_file_open_ex(file, 1, 0, 0, 0) idiom. This
will make the file access mode more explicit in the code.
Change all calls to g_file_open() to the _ro() or _rw() variant as
appropriate, and replace g_file_open_ex(file, 1, 0, 0, 0) with the _ro()
call.
Lastly, add tests for the two new calls to test_os_calls.c (code
courteously provided by matt335672).
2023-05-15 17:38:31 -04:00
matt335672
c3d697de16
Add list_add_strdup() etc
2023-03-06 15:58:13 +00:00
matt335672
0a1a8f40e5
Moved a lot of string funcs to string_calls module
2020-12-22 11:57:24 +00:00
Koichiro IWAO
3da4d72323
common: quit using !
as comment out symbol in config files
...
It is not used anywhere in default config. Some config like
`tls_ciphers` might contain `!` like this:
tls_ciphers=FIPS:!aNULL:!eNULL
Fixes #1033 .
2018-02-20 13:13:34 +09:00
Koichiro IWAO
eae5cdf1fd
pass through except for the first '='
...
if "foo=ba=r" is found in ini files, it should be parsed like this.
key : foo
value : ba=r
2017-08-01 08:40:30 +09:00
Pavel Roskin
6ed4c969f4
Eliminate APP_CC and DEFAULT_CC
2017-03-14 00:21:48 -07:00
Pavel Roskin
b2d3dcf169
Include config_ac.h from all source files
2017-03-04 00:52:34 -08:00
Jay Sorg
425bd945a5
common: updates for file.c
2016-02-09 18:29:52 -08:00
jsorg71
f7742eddec
Merge pull request #273 from gschwind/devel
...
fix wrong handle of commented section in configuration file.
2016-02-08 16:49:39 -08:00
Pavel Roskin
964e860072
Run through codespell
2016-01-14 08:47:50 -08:00
Benoit Gschwind
c9762fa3a7
fix wrong handle of commented section in configuration file.
...
- fix parssing of commented section like the line:
#[section_name]
or
![section_name]
- add few comments
- improve redability
2015-08-19 23:02:50 +02:00
Laxmikant Rashinkar
3bb31876e7
coverity: fixed resolution leak issues
2014-07-19 11:56:00 -07:00
Jay Sorg
fef8cd9c97
common: increase file maxline size to 2048
2014-06-18 21:18:47 -07:00
Jay Sorg
374633e63f
common: no logic change, update comments
2014-03-01 23:26:40 -08:00
Jay Sorg
c6fa03102f
copyright year update
2013-06-08 10:51:53 -07:00
Jay Sorg
8acdc403e3
common: fix for when [] is in comment
2013-04-25 00:19:14 -07:00
Laxmikant Rashinkar
1123323fda
o moved from GNU General Public License to Apache License, Version 2.0
...
o applied new coding standards to all .c files
o moved some files around
2012-09-19 20:51:34 -07:00
Jay Sorg
9da5248145
common: allow env vars to override .ini settings when value start with $
2012-03-16 15:38:13 -07:00
Jay Sorg
bb7898419f
update copyright year
2010-10-19 20:00:38 -07:00
jsorg71
a4461e04d3
allow ';' for comment too
2009-09-07 18:54:03 +00:00
jsorg71
6c5f82fd04
update copyright year
2009-02-02 08:01:44 +00:00
jsorg71
38b789e81f
update copyright year
2008-01-30 07:30:10 +00:00
jsorg71
30492c0988
added by_name functions that can read any file size
2007-10-28 05:49:08 +00:00
jsorg71
d0c70a89b2
tbus
2007-10-27 07:02:28 +00:00
jsorg71
d3fa8fd6f6
added g_strtrim
2007-10-27 05:53:19 +00:00
jsorg71
e14366665b
fix for file_read_line
2007-01-15 09:02:21 +00:00
jsorg71
02cd95ebef
copyright year update
2007-01-12 05:01:58 +00:00
jsorg71
00d8b7106f
commit patch 1589325, slightly modified - code cleanup
2006-11-04 22:05:06 +00:00
jsorg71
f386cea14a
make some functions static per 1579343
2006-10-24 04:05:38 +00:00
jsorg71
0a7dc2b687
copyright changes on some files
2006-10-12 04:46:40 +00:00
jsorg71
c3d93235b1
allow comments starting with # or cvs diff
2006-07-21 03:27:03 +00:00
jsorg71
f9b3faac0e
use strcasecmp when comparing
2006-04-23 21:29:05 +00:00
jsorg71
b65409683b
copyright year updates
2006-03-21 02:05:38 +00:00
jsorg71
0d6afdf52f
return error if can't find section
2005-09-29 03:19:52 +00:00
jsorg71
967f6592d5
move rsa keys to a file and load at connection
2005-09-26 02:16:37 +00:00
jsorg71
5d1c7fb6b5
case insesitive file sections
2005-09-25 04:08:26 +00:00
jsorg71
41df89c7f2
moved some files around
2005-06-28 03:04:36 +00:00