Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
telegraf-nftables
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Due to inactivity, this project is scheduled to be deleted on 2035-04-24.
Why is this scheduled?
Show more breadcrumbs
vqgroup
telegraf-nftables
Commits
9e810ac4
Unverified
Commit
9e810ac4
authored
8 years ago
by
Cameron Sparr
Browse files
Options
Downloads
Patches
Plain Diff
Handle nil os.FileInfo in filepath.Walk
closes #2466
parent
b9457a10
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
internal/config/config.go
+4
-0
4 additions, 0 deletions
internal/config/config.go
with
5 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
9e810ac4
...
...
@@ -66,6 +66,7 @@ be deprecated eventually.
-
[
#2380
](
https://github.com/influxdata/telegraf/issues/2380
)
: buffer_size field value is negative number from "internal" plugin.
-
[
#2414
](
https://github.com/influxdata/telegraf/issues/2414
)
: Missing error handling in the MySQL plugin leads to segmentation violation.
-
[
#2178
](
https://github.com/influxdata/telegraf/issues/2178
)
: logparser: regexp with lookahead.
-
[
#2466
](
https://github.com/influxdata/telegraf/issues/2466
)
: Telegraf can crash in LoadDirectory on 0600 files.
## v1.2.1 [2017-02-01]
...
...
This diff is collapsed.
Click to expand it.
internal/config/config.go
+
4
−
0
View file @
9e810ac4
...
...
@@ -505,6 +505,10 @@ func PrintOutputConfig(name string) error {
func
(
c
*
Config
)
LoadDirectory
(
path
string
)
error
{
walkfn
:=
func
(
thispath
string
,
info
os
.
FileInfo
,
_
error
)
error
{
if
info
==
nil
{
log
.
Printf
(
"W! Telegraf is not permitted to read %s"
,
thispath
)
return
nil
}
if
info
.
IsDir
()
{
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment