chiark
/
gitweb
/
~mdw
/
ca
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin/withdraw: Make sure the database is actually open.
[ca]
/
bin
/
withdraw
diff --git
a/bin/withdraw
b/bin/withdraw
index ed6e740bcba9d56ec382a5ef7fac634084ff872b..af47bc50c1216796928b8da2a170f8fbbd6045db 100755
(executable)
--- a/
bin/withdraw
+++ b/
bin/withdraw
@@
-25,6
+25,11
@@
## Find the common utilities.
source [file join [file dirname $argv0] "../lib/func.tcl"]
## Find the common utilities.
source [file join [file dirname $argv0] "../lib/func.tcl"]
+## Open the database
+sqlite3 db "$CERTROOT/state/ca.db"
+db nullvalue nil
+cd "$CERTROOT"
+
## Get the list of requests.
if {[llength $argv] != 1} {
puts stderr "Usage: $QUIS REQID"
## Get the list of requests.
if {[llength $argv] != 1} {
puts stderr "Usage: $QUIS REQID"