From c930b7b4fe986da0ccca8b2d1d38eb92a01ced1d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 25 Aug 2016 13:11:21 +0200 Subject: [PATCH] platform: silence error reading sysctl for non existing device https://bugzilla.gnome.org/show_bug.cgi?id=770378 --- src/platform/nm-linux-platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 98c4e461a..67443aa85 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