core: fix writing blank sysctl values
Sometimes we need to write blank values.
This commit is contained in:
@@ -615,7 +615,6 @@ nm_utils_do_sysctl (const char *path, const char *value)
|
||||
|
||||
g_return_val_if_fail (path != NULL, FALSE);
|
||||
g_return_val_if_fail (value != NULL, FALSE);
|
||||
g_return_val_if_fail (value[0], FALSE);
|
||||
|
||||
fd = open (path, O_WRONLY | O_TRUNC);
|
||||
if (fd == -1) {
|
||||
|
Reference in New Issue
Block a user