You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-power/apcupsd/files/apcupsd-3.14.9-fix-nologin....

16 lines
529 B

Description: only prohibit logins on shutdown if login is allowed at all
Index: apcupsd-3.14.12/src/action.c
===================================================================
--- apcupsd-3.14.12.orig/src/action.c
+++ apcupsd-3.14.12/src/action.c
@@ -208,7 +208,8 @@ static void do_shutdown(UPSINFO *ups, in
delete_lockfile(ups);
ups->set_fastpoll();
make_file(ups, ups->pwrfailpath);
- prohibit_logins(ups);
+ if (ups->nologin.type != NEVER)
+ prohibit_logins(ups);
if (!ups->is_slave()) {
/*