aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-21 17:34:51 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-21 19:41:37 +0100
commitd56b957dbae6c8214d50ce88d0ea04eb4654b843 (patch)
tree7ea3c680d45013a16d582b0d627f42c77ffd8d8a
parent594c32ac58167396980a404261047e94155a83d3 (diff)
wording
-rwxr-xr-xlacme2
-rwxr-xr-xlacme-accountd4
-rw-r--r--lacme.8.md2
-rw-r--r--tests/accountd2
-rw-r--r--tests/spec-expansion4
5 files changed, 7 insertions, 7 deletions
diff --git a/lacme b/lacme
index 88ab78d..1e51c6c 100755
--- a/lacme
+++ b/lacme
@@ -93,7 +93,7 @@ sub spec_expand($) {
: $1 eq "T" ? env_fallback(TMPDIR => "/tmp")
: $1 eq "%" ? "%"
: die "Error: \"$str\" has unknown specifier %$1\n";
- die "Error: undefined expansion %$1 in \"$str\"\n" unless defined $x;
+ die "Error: Undefined expansion %$1 in \"$str\"\n" unless defined $x;
$x;
#ge;
return $str;
diff --git a/lacme-accountd b/lacme-accountd
index 6a6e90d..0f0b0d9 100755
--- a/lacme-accountd
+++ b/lacme-accountd
@@ -105,7 +105,7 @@ sub spec_expand($) {
: $1 eq "T" ? env_fallback(TMPDIR => "/tmp")
: $1 eq "%" ? "%"
: error("\"$str\" has unknown specifier %$1");
- error("undefined expansion %$1 in \"$str\"") unless defined $x;
+ error("Undefined expansion %$1 in \"$str\"") unless defined $x;
$x;
#ge;
return $str;
@@ -178,7 +178,7 @@ if ($OPTS{privkey} =~ /\A(file|gpg):(\p{Print}+)\z/) {
$SIGN = sub($) { $rsa->sign($_[0]) };
}
else {
- error("unsupported method: $OPTS{privkey}");
+ error("Unsupported method: $OPTS{privkey}");
}
my $JWK_STR = JSON::->new->encode($JWK);
diff --git a/lacme.8.md b/lacme.8.md
index 30de221..ad6dab6 100644
--- a/lacme.8.md
+++ b/lacme.8.md
@@ -92,7 +92,7 @@ Commands
: Request that the given certificate(s) *FILE*(s) be revoked. For
this command, [`lacme-accountd`(1)] can be pointed to either the
- account key or the server's private key.
+ account key or the certificate key.
Command alias: `revoke-cert`.
Generic settings
diff --git a/tests/accountd b/tests/accountd
index 2798465..c82a05d 100644
--- a/tests/accountd
+++ b/tests/accountd
@@ -45,7 +45,7 @@ grepstderr -Fxq "Error: Insecure permissions on /tmp"
# unset XDG_RUNTIME_DIR
! runuser -u lacme-account -- lacme-accountd 2>"$STDERR" || fail
-grepstderr "Error: undefined expansion %t in \"%t/S.lacme\""
+grepstderr "Error: Undefined expansion %t in \"%t/S.lacme\""
# non-existent $XDG_RUNTIME_DIR
! runuser -u lacme-account -- env XDG_RUNTIME_DIR="/nonexistent" lacme-accountd 2>"$STDERR" || fail
diff --git a/tests/spec-expansion b/tests/spec-expansion
index 273fa51..a268637 100644
--- a/tests/spec-expansion
+++ b/tests/spec-expansion
@@ -11,7 +11,7 @@ grepstderr -Fxq "Can't open /var/cache /etc /run /root /foo/tmp root 0 root 0 %.
# lacme --config=, all specifiers, non-root, unset XDG_RUNTIME_DIR
! runuser -u nobody -- lacme --config="%C %E %t %h %T %g %G %u %U %%.conf" account 2>"$STDERR" || fail
-grepstderr -Fxq "Error: undefined expansion %t in \"%C %E %t %h %T %g %G %u %U %%.conf\""
+grepstderr -Fxq "Error: Undefined expansion %t in \"%C %E %t %h %T %g %G %u %U %%.conf\""
# lacme --config=, all specifiers, non-root, defined XDG_RUNTIME_DIR, no other XDG_*
! runuser -u nobody -g www-data -- env XDG_RUNTIME_DIR=/foo/run \
@@ -77,7 +77,7 @@ grepstderr -Fxq "Error: Failed to open file '/var/cache /etc /run /root /foo/tmp
# lacme-accountd --config=, all specifiers, non-root, unset XDG_RUNTIME_DIR
! runuser -u nobody -- lacme-accountd --config="%C %E %t %h %T %g %G %u %U %%.conf" account 2>"$STDERR" || fail
-grepstderr -Fxq "Error: undefined expansion %t in \"%C %E %t %h %T %g %G %u %U %%.conf\""
+grepstderr -Fxq "Error: Undefined expansion %t in \"%C %E %t %h %T %g %G %u %U %%.conf\""
# lacme-accountd --config=, all specifiers, non-root, defined XDG_RUNTIME_DIR, no other XDG_*
! runuser -u nobody -g www-data -- env XDG_RUNTIME_DIR=/foo/run \