- (djm) [loginrec.c] Relax permission requirement on btmp logs to allow

group read/write. ok dtucker@
This commit is contained in:
Damien Miller 2010-11-24 10:36:15 +11:00
parent d995712383
commit 88e341e1ca
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,8 @@
20101124
- (dtucker) [platform.c session.c] Move the getluid call out of session.c and
into the platform-specific code Only affects SCO, tested by and ok tim@.
- (djm) [loginrec.c] Relax permission requirement on btmp logs to allow
group read/write. ok dtucker@
20101122
- (dtucker) Bug #1840: fix warning when configuring --with-ssl-engine, patch

View File

@ -1673,7 +1673,7 @@ record_failed_login(const char *username, const char *hostname,
strerror(errno));
goto out;
}
if((fst.st_mode & (S_IRWXG | S_IRWXO)) || (fst.st_uid != 0)){
if((fst.st_mode & (S_IXGRP | S_IRWXO)) || (fst.st_uid != 0)){
logit("Excess permission or bad ownership on file %s",
_PATH_BTMP);
goto out;