mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-26 05:35:21 +07:00
sysctl: don't warn if sysctls are gone
This commit is contained in:
parent
a78899f541
commit
5707631ec6
@ -53,7 +53,9 @@ static void apply_sysctl(const char *property, const char *value) {
|
|||||||
*n = '/';
|
*n = '/';
|
||||||
|
|
||||||
if ((r = write_one_line_file(p, value)) < 0) {
|
if ((r = write_one_line_file(p, value)) < 0) {
|
||||||
log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r));
|
|
||||||
|
log_full(r == -ENOENT ? LOG_DEBUG : LOG_WARNING,
|
||||||
|
"Failed to write '%s' to '%s': %s", value, p, strerror(-r));
|
||||||
|
|
||||||
if (r != -ENOENT)
|
if (r != -ENOENT)
|
||||||
exit_code = r;
|
exit_code = r;
|
||||||
|
Loading…
Reference in New Issue
Block a user