Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix corner case when /etc/mtab doesn't exist and procfs=/proc (#1470)
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 #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>
- Loading branch information