Module Name: src Committed By: rillig Date: Sat Aug 27 08:57:23 UTC 2022
Modified Files: src/crypto/external/bsd/netpgp/dist/bindings/lua: netpgp.lua Log Message: netpgp: fail if the shared library cannot be loaded To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 \ src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua diff -u src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua:1.6 src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua:1.7 --- src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua:1.6 Mon Apr 30 22:17:46 2018 +++ src/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua Sat Aug 27 08:57:23 2022 @@ -50,7 +50,7 @@ if f then extension = ".dylib" io.close(f) end -glupkg = package.loadlib("libluanetpgp" .. extension, "luaopen_netpgp") +glupkg = assert(package.loadlib("libluanetpgp" .. extension, "luaopen_netpgp")) netpgp = glupkg() -- initialise @@ -79,7 +79,6 @@ end -- initialise everything netpgp.init(pgp) -local i for i = 1, #args do if options.encrypt then -- encrypt a file