diff options
author | Thomas Haller <thaller@redhat.com> | 2016-08-25 13:11:21 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-08-25 15:38:28 +0200 |
commit | c930b7b4fe986da0ccca8b2d1d38eb92a01ced1d (patch) | |
tree | dbf2cebba6fcdf17d87cc7ddbdc865fe0ae33422 | |
parent | 2a314557c778c5a77b0c5ae4d14484897b5cccfc (diff) | |
download | NetworkManager-c930b7b4fe986da0ccca8b2d1d38eb92a01ced1d.tar.gz |
platform: silence error reading sysctl for non existing device
https://bugzilla.gnome.org/show_bug.cgi?id=770378
-rw-r--r-- | src/platform/nm-linux-platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 98c4e461ab..67443aa853 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2687,6 +2687,7 @@ sysctl_get (NMPlatform *platform, const char *path) if (!g_file_get_contents (path, &contents, NULL, &error)) { /* We assume FAILED means EOPNOTSUP */ if ( g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT) + || g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NODEV) || g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_FAILED)) _LOGD ("error reading %s: %s", path, error->message); else |