diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2021-02-20 22:05:18 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2021-02-21 00:19:51 +0100 |
commit | 74c0a11722cf1e01b9a9834e89a07b55eaf01080 (patch) | |
tree | 8f12146e2a5b402fc6b846259c1be02ed2f10edc /lacme | |
parent | cf3d42c066d2f54d4a57aa38907a7c6c7d06aeb6 (diff) |
lacme-accountd: new setting 'logfile' to log signature requests.
Prefixed with a timestamp.
Diffstat (limited to 'lacme')
-rwxr-xr-x | lacme | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: $!"; |