diff options
author | Andy Shinn <andys@andyshinn.as> | 2015-05-06 21:49:31 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-05-06 22:04:09 +0300 |
commit | 3faf2e032027ffa255f9a49f2f17c8e0239173ff (patch) | |
tree | 306650bffa3dc7e516b78b004a3483d18f27fa06 /main/ca-certificates/update-ca-certificates | |
parent | 007b0f085eedb10f412501b6659978337aaa9027 (diff) | |
download | aports-3faf2e032027ffa255f9a49f2f17c8e0239173ff.tar.bz2 aports-3faf2e032027ffa255f9a49f2f17c8e0239173ff.tar.xz |
main/ca-certificates: fix bug in processing of local CA certificates
We were only grabbing the index of the certlist table, which was making the
filename appear as a number. It would seem like the seem like the second
variables from the pairs() function is the actual name we want.
[Timo: changed to use lua scratch '_' for the first return value,
and use ipairs as it is numbered table.]
Diffstat (limited to 'main/ca-certificates/update-ca-certificates')
-rwxr-xr-x | main/ca-certificates/update-ca-certificates | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/ca-certificates/update-ca-certificates b/main/ca-certificates/update-ca-certificates index 53f45dfe19..1780ce5d93 100755 --- a/main/ca-certificates/update-ca-certificates +++ b/main/ca-certificates/update-ca-certificates @@ -47,8 +47,7 @@ end local certlist = posix.glob(LOCALCERTSDIR..'*.crt') if certlist ~= nil then table.sort(certlist) - for f in pairs(certlist) do - local fn = LOCALCERTSDIR..f + for _, fn in ipairs(certlist) do if posix.stat(fn, 'type') == 'regular' then add(fn, bundle, calinks) end |