chiark
/
gitweb
/
~mdw
/
ca
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.distorted.org.uk/~mdw/ca
[ca]
/
bin
/
withdraw
diff --git
a/bin/withdraw
b/bin/withdraw
index ed6e740bcba9d56ec382a5ef7fac634084ff872b..4f67086cdec83c017fbd8606cff78486a810af88 100755
(executable)
--- a/
bin/withdraw
+++ b/
bin/withdraw
@@
-25,9
+25,14
@@
## 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} {
## Get the list of requests.
if {[llength $argv] != 1} {
- puts stderr "
U
sage: $QUIS REQID"
+ puts stderr "
u
sage: $QUIS REQID"
exit 1
}
lassign $argv reqid
exit 1
}
lassign $argv reqid