forked from networkupstools/nut
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common/state.c: log about not-updating an immutable value [networkups…
…tools#266] Signed-off-by: Jim Klimov <[email protected]>
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
2003 Russell Kroll <[email protected]> | ||
2008 Arjen de Korte <[email protected]> | ||
2012 Arnaud Quette <[email protected]> | ||
2020-2024 Jim Klimov <[email protected]> | ||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
@@ -295,6 +296,7 @@ int state_setinfo(st_tree_t **nptr, const char *var, const char *val) | |
|
||
/* changes should be ignored */ | ||
if (node->flags & ST_FLAG_IMMUTABLE) { | ||
upsdebugx(6, "%s: not changing immutable variable [%s]", __func__, var); | ||
return 0; /* no change */ | ||
} | ||
|
||
|