2012-08-28 Junichi Satoh <junichi@rworks.jp>
* pandora_agent: Improved to be able to use CRLF in pandora_agent.conf. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6917 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b65d36054e
commit
bd5abdf277
|
@ -1,3 +1,7 @@
|
||||||
|
2012-08-28 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* pandora_agent: Improved to be able to use CRLF in pandora_agent.conf.
|
||||||
|
|
||||||
2012-08-15 Junichi Satoh <junichi@rworks.jp>
|
2012-08-15 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* pandora_agent: Changed not to use thread library when agent_threads
|
* pandora_agent: Changed not to use thread library when agent_threads
|
||||||
|
|
|
@ -577,6 +577,9 @@ sub read_config (;$) {
|
||||||
# Skip comments and empty lines
|
# Skip comments and empty lines
|
||||||
next if ($line =~ m/^\s*#/) or ($line =~ m/^\s*$/);
|
next if ($line =~ m/^\s*#/) or ($line =~ m/^\s*$/);
|
||||||
|
|
||||||
|
# Replace CRLF with LF
|
||||||
|
$line =~ s/\r\n/\n/g;
|
||||||
|
|
||||||
# Token search
|
# Token search
|
||||||
if (defined ($token)) {
|
if (defined ($token)) {
|
||||||
if ($line =~ /^\s*(\S+)\s+(.*)$/ && $1 eq $token) {
|
if ($line =~ /^\s*(\S+)\s+(.*)$/ && $1 eq $token) {
|
||||||
|
|
Loading…
Reference in New Issue