chiark
/
gitweb
/
~ian
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db90094
)
make-secnet-sites: Tolerate late `complain'
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 1 Dec 2019 17:35:27 +0000
(17:35 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 21:52:06 +0000
(21:52 +0000)
In
e5baf0cd0e91353194df02c4c376b0c472f49ec2
make-secnet-sites: Crash if complain() is called too late
we checked for this.
But actually we want to support it. Do so by exiting right away.
So, early enough complaints are saved up. Late ones cause immediate
exit.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites
patch
|
blob
|
history
diff --git
a/make-secnet-sites
b/make-secnet-sites
index ac3efe64d63b27b35c7a6ec55b1550c1854c4680..66b4cb1ddc7891ce4eaeba267ec5f01277a8f963 100755
(executable)
--- a/
make-secnet-sites
+++ b/
make-secnet-sites
@@
-543,6
+543,7
@@
def moan(msg):
"Complain about something in general"
global complaints
print(msg);
+ if complaints is None: sys.exit(1)
complaints=complaints+1
class UntaintedRoot():