Skip to content

Comments

ignore symlinks in sysfs when iterating directories#213

Merged
pgier merged 1 commit intoprometheus:masterfrom
pgier:fix-sysfs-symlink-error
Sep 6, 2019
Merged

ignore symlinks in sysfs when iterating directories#213
pgier merged 1 commit intoprometheus:masterfrom
pgier:fix-sysfs-symlink-error

Conversation

@pgier
Copy link
Collaborator

@pgier pgier commented Sep 5, 2019

Prevents error when attempting to read a symlink as a regular file.

Related to prometheus/node_exporter#1465

Prevents error when attempting to read a symlink as a regular file.

Signed-off-by: Paul Gier <pgier@redhat.com>
@pgier
Copy link
Collaborator Author

pgier commented Sep 5, 2019

Same problem as #206

Copy link
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pgier pgier merged commit 8664f2c into prometheus:master Sep 6, 2019
bobrik pushed a commit to bobrik/procfs that referenced this pull request Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants