mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 06:00:08 +01:00
platform: silence error reading sysctl for non existing device
https://bugzilla.gnome.org/show_bug.cgi?id=770378
This commit is contained in:
parent
2a314557c7
commit
c930b7b4fe
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue