This repository has been archived by the owner on Jan 15, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: revamp the detection of embedded perl usage directive "# icinga…
…: +epn" (Andreas Ericsson) #2197 patch is revamping the detection of the first 10 lines containing the "#icinga: +epn" line. previously, the core would have read only the first 80 characters from each line via fgets, which could be to less. the inner handling is changed to 256 chars, which should be sufficient. removing the strtok on ':' is also a good idea, as this can be done via the strstr pointer match on 'epn' as well, calculating the return value based on the character ('+' means embedded perl enabled). refs #2197
- Loading branch information
Michael Friedrich
committed
Jul 6, 2012
1 parent
debab14
commit 9707f13
Showing
2 changed files
with
37 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters