aboutsummaryrefslogtreecommitdiffstats
path: root/lacme
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-20 22:05:18 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-21 00:19:51 +0100
commit74c0a11722cf1e01b9a9834e89a07b55eaf01080 (patch)
tree8f12146e2a5b402fc6b846259c1be02ed2f10edc /lacme
parentcf3d42c066d2f54d4a57aa38907a7c6c7d06aeb6 (diff)
lacme-accountd: new setting 'logfile' to log signature requests.
Prefixed with a timestamp.
Diffstat (limited to 'lacme')
-rwxr-xr-xlacme6
1 files changed, 3 insertions, 3 deletions
diff --git a/lacme b/lacme
index ad7e1d8..88ab78d 100755
--- a/lacme
+++ b/lacme
@@ -558,12 +558,12 @@ sub acme_client($@) {
# ensure we're the only user with write access to the parent dir
my $dirname = dirname($sockname);
- @stat = stat($dirname) or die "stat($dirname): $!\n";
- die "Error: insecure permissions on $dirname\n" if ($stat[2] & 0022) != 0;
+ @stat = stat($dirname) or die "Error: stat($dirname): $!\n";
+ die "Error: Insecure permissions on $dirname\n" if ($stat[2] & 0022) != 0;
# ensure we're the only user with read/write access to the socket
@stat = stat($sockname) or die "Can't stat $sockname: $! (Is lacme-accountd running?)\n";
- die "Error: insecure permissions on $sockname\n" if ($stat[2] & 0066) != 0;
+ die "Error: Insecure permissions on $sockname\n" if ($stat[2] & 0066) != 0;
# connect(2) to the socket
socket($client, PF_UNIX, SOCK_STREAM, 0) or die "socket: $!";