svn commit: r368579 - head/stand/lua

Kyle Evans <[email protected]> Sat, 12 Dec 2020 14:53:34 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012121453.0BCErZxw035483__45718.5725493886$1607784822$gmane$org@repo.freebsd.org>
Author: kevans
Date: Sat Dec 12 14:53:34 2020
New Revision: 368579
URL: https://svnweb.freebsd.org/changeset/base/368579

Log:
  lualoader: config: fix module enabled check
  
  A last minute rewrite left this logically wrong; if it's present in
  modules_blacklist, then we do not load it.

Modified:
  head/stand/lua/config.lua

Modified: head/stand/lua/config.lua
==============================================================================
--- head/stand/lua/config.lua	Sat Dec 12 11:51:29 2020	(r368578)
+++ head/stand/lua/config.lua	Sat Dec 12 14:53:34 2020	(r368579)
@@ -718,7 +718,7 @@ function config.isModuleEnabled(modname)
 	end
 
 	local blacklist = getBlacklist()
-	return blacklist[modname]
+	return not blacklist[modname]
 end
 
 hook.registerType("config.loaded")
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"