Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix corner case when /etc/mtab doesn't exist and procfs=/proc #1470

Merged

Commits on Mar 28, 2019

  1. Fix corner case when /etc/mtab doesn't exist and procfs=/proc

    In some Linux configurations the `/etc/mtab` does not exist but the
    procfs_path is equal to `/proc`.
    With the fix done for the issue giampaolo#1307, the described configuration didn't work.
    
    This Commit introduce an additional check that verifies if the
    `/etc/mtab` file exists before using it, else it defaults to `<procfs_path>/self/mounts`
    
    Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
    clamoriniere committed Mar 28, 2019
    Copy the full SHA
    7d7300d View commit details
    Browse the repository at this point in the history