projects
/
fsf-keyring.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc77691
)
fixed gpg key checking function
author
Andrew Engelbrecht
<andrew@fsf.org>
Mon, 1 Aug 2022 20:35:44 +0000
(16:35 -0400)
committer
Andrew Engelbrecht
<andrew@fsf.org>
Mon, 1 Aug 2022 20:35:44 +0000
(16:35 -0400)
fsf-keyring.sh
patch
|
blob
|
blame
|
history
diff --git
a/fsf-keyring.sh
b/fsf-keyring.sh
index a21c4eab8d959aae3b646a528f673bdffde89538..9a8910e0bb836a8aaa71073ba2d879a8a8608395 100755
(executable)
--- a/
fsf-keyring.sh
+++ b/
fsf-keyring.sh
@@
-37,7
+37,10
@@
refresh-gpg-key() {
}
check-sig-dos() {
- (( "$(stat -c %s "$1")" > "${dos_attack_bytes}" )) && echo -e "\n\nerror: keyring is very large. did we get a signature DoS attack?\n\n" && exit 1
+ if (( "$(stat -c %s "$1")" > "$dos_attack_bytes" )) ; then
+ echo -e "\n\nerror: keyring is very large. did we get a signature DoS attack?\n\n"
+ exit 1
+ fi
}
refresh=true