Skip to content

Conversation

@jimklimov
Copy link
Member

Another bump goes by... more recently fixed bugs to resync into the other code base, wannabe into the main trunk.

jimklimov and others added 30 commits January 23, 2026 09:58
Enables to read UPS data from UPower. This is useful if a UPS
connected to a desktop system should be exposed over the network.
It can also be used to expose laptop batteries.

Signed-off-by: Tim Niemueller <[email protected]>
Required to also test upower_dbus driver.

Signed-off-by: Tim Niemueller <[email protected]>
…where multiple calls to clean-up crashed the program [networkupstools#3193]

Special thanks to maintainer of libfreeipmi for helping catch it!

Signed-off-by: Jim Klimov <[email protected]>
Co-authored-by: Albert Chu <[email protected]>
]

Avoid RPM build error like:
    line 121: Illegal char '-' (0x2d) in: Version:        2.8.5-rc1.12+g3501cd37

Signed-off-by: Jim Klimov <[email protected]>
…bal debug_min from ups.conf also to upsdrvctl tool itself [networkupstools#3276]

Signed-off-by: Jim Klimov <[email protected]>
…top, so upsdrvctl exits when the driver is gone [networkupstools#3277]

Signed-off-by: Jim Klimov <[email protected]>
…ilable [networkupstools#3277]

Proper NUT daemons intercept SIGPIPE and survive closed connections,
but consumers of upsdrvquery might not, and would crash. If we can,
just return the error (and errno=EPIPE) for the specific call.

Signed-off-by: Jim Klimov <[email protected]>
…kopt(), prefer it over the blanket signal change for the process; handle EPIPE specially [networkupstools#3277]

Signed-off-by: Jim Klimov <[email protected]>
…rvquery_NOSIGPIPE toggle for consumers who might want to handle SIGPIPE themselves [networkupstools#3277]

Signed-off-by: Jim Klimov <[email protected]>
…p and timeout accounting when the read size remains 0 [networkupstools#3277]

Signed-off-by: Jim Klimov <[email protected]>
…sname() failed, try another in case the driver is still starting and we were called too soon [networkupstools#3277]

Signed-off-by: Jim Klimov <[email protected]>
Add missing terms.

Signed-off-by: Tim Niemueller <[email protected]>
Apply global `debug_min` from `ups.conf` also to `upsdrvctl` tool
…ut.voltage`, `output.voltage` for e.g. Ugreen US3000 [networkupstools#3281]

Signed-off-by: Jim Klimov <[email protected]>
…pport in vupslog(), and cgilogbit_set() for browser-friendly logging in NUT CGI programs [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
…y logging in NUT CGI programs (in developer build and/or command-line runs) [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
…ith flag tokens (no assignment) in the middle, not at end [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
…L-check the template_list/single vars before comparing strings [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
… NUT CGI hosts.conf to constrain the permitted custom HTML template file names to a set that admins intend to use [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
… other errors, use HTML <BR/> tags in the printout (especially if debug is on) [networkupstools#2524]

Signed-off-by: Jim Klimov <[email protected]>
… layout when we only use dist-tarball pre-built pages [networkupstools#3314]

Signed-off-by: Jim Klimov <[email protected]>
… pre-built pages when we have only them and want something installed [networkupstools#3314]

NOTE: want_disted_doc_man=yes is set lower in code, hopefully we do reach that part;
else have inputs for troubleshooting the recipes.

Signed-off-by: Jim Klimov <[email protected]>
…y to touch the artifacts as when we do upon deliberate choice [networkupstools#3314]

Signed-off-by: Jim Klimov <[email protected]>
More warnings and docs fix to build under Fedora 43
drivers/upsdrvctl.c: forkexec(): double-quote the WIN32 argv[0] in commandline
…snmp-subdriver-fix

Fix hang in gen-snmp-subdriver.sh
…l-trace-symbols

Trace symbols from dynamically loaded libraries in `nut-scanner`
Support exiting from `nut.exe -N` with Ctrl+C
Support providing CGI options for alternate template file names
`configure.ac` man-page section magic vs. tarball builds
upsd: chunk the MAXCONN-sized array processing into several smaller "sysmaxconn"-sized polls as needed
@jimklimov jimklimov added this to the 2.8.5 milestone Feb 11, 2026
@jimklimov jimklimov added the DMF NUT Data/Dynamic Mapping File/Format/Functionality feature label Feb 11, 2026
@jimklimov jimklimov force-pushed the FTY-remerge-20260210 branch from 5db7fb1 to ab7ddb9 Compare February 11, 2026 09:31
Comment on lines +393 to +395
boosting = 0; /* FIXME, don't know which bit gets set
* (brownouts are very rare here and
* I can't simulate one) */

Check notice

Code scanning / CodeQL

FIXME comment Note

FIXME comment: , don't know which bit gets set [...]
Comment on lines +2268 to +2273
} else if ( (v1 && v2 && v3)
|| (v1n && v2n && v3n)
|| (c1 && (c2 || c3))
|| (c2 && (c1 || c3))
|| (c3 && (c1 || c2))
|| v12 || v23 || v31

Check notice

Code scanning / CodeQL

Complex condition Note

Complex condition: too many logical operations in this expression.
Comment on lines +2280 to +2291
!v12 && !v23 && !v31
&& ( (c0 && !c1 && !c2 && !c3)
|| (v0 && !v1 && !v2 && !v3)
|| (c1 && !c2 && !c3)
|| (!c1 && c2 && !c3)
|| (!c1 && !c2 && c3)
|| (v1 && !v2 && !v3)
|| (!v1 && v2 && !v3)
|| (!v1 && !v2 && v3)
|| (v1n && !v2n && !v3n)
|| (!v1n && v2n && !v3n)
|| (!v1n && !v2n && v3n) )

Check notice

Code scanning / CodeQL

Complex condition Note

Complex condition: too many logical operations in this expression.
/* Passed final lt_dlsym() */
symbol = NULL;

if (dl_saved_libname)

Check notice

Code scanning / CodeQL

Guarded Free Note

unnecessary NULL check before call to
free
@AppVeyorBot
Copy link

@jimklimov
Copy link
Member Author

GitHub auth engine crashed and denied checkouts :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DMF NUT Data/Dynamic Mapping File/Format/Functionality feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants