That behavior may have made sense, but it was too surprising.
.TP
\fB\-l\fR \fIfile\fR | \fB\-\^\-log=\fIfile\fR
-Sets the log file to \fIfile\fR. If \fIfile\fR starts with \fB/\fR,
-it is taken as an absolute path; otherwise it is relative to @LOGDIR@.
-Default: \fBofp\-pki.log\fR.
+Sets the log file to \fIfile\fR. Default:
+\fB@LOGDIR@/ofp\-pki.log\fR.
.TP
\fB\-h\fR | \fB\-\^\-help\fR
if test -z "$dsaparam"; then
dsaparam=$pkidir/dsaparam.pem
fi
+case $log in
+ /*) ;;
+ *) $log="$PWD/$log" ;;
+esac
if test "$command" = "init"; then
if test -e "$pkidir" && test "$force" != "yes"; then
fi
}
-case $log in
- /*)
- exec 3>>$log || true
- ;;
- *)
- exec 3>>$pkidir/$log || true
- ;;
-esac
-
+exec 3>>$log || true
if test "$command" = req; then
one_arg