mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 04:00:17 +01:00
core: fix writing blank sysctl values
Sometimes we need to write blank values.
This commit is contained in:
parent
ce586cc679
commit
43952e28c2
1 changed files with 0 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue