Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Low: clarify key file read permissions requirement a bit
  • Loading branch information
jnpkrn committed May 10, 2016
commit c5f0d46dfd2cb1cb5d1c3d9d5d4e42d1b8cfede4
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ static int read_authkey()
return -1;
}
if (booth_conf->authstat.st_mode & (S_IRGRP | S_IROTH)) {
log_error("%s: file can be readable only for the owner", booth_conf->authfile);
log_error("%s: file shall not be readable for anyone but the owner",
booth_conf->authfile);
return -1;
}
fd = open(booth_conf->authfile, O_RDONLY);
Expand Down