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>
|
||||
|
||||
* pandora_agent: Changed not to use thread library when agent_threads
|
||||
|
|
|
@ -576,6 +576,9 @@ sub read_config (;$) {
|
|||
foreach my $line (@file){
|
||||
# Skip comments and empty lines
|
||||
next if ($line =~ m/^\s*#/) or ($line =~ m/^\s*$/);
|
||||
|
||||
# Replace CRLF with LF
|
||||
$line =~ s/\r\n/\n/g;
|
||||
|
||||
# Token search
|
||||
if (defined ($token)) {
|
||||
|
|
Loading…
Reference in New Issue