mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
Merge upstream r509: don't log an error in the common case (ENOENT).
This commit is contained in:
commit
d9ecbdf39e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228810
|
@ -104,9 +104,11 @@ openpam_check_path_owner_perms(const char *path)
|
|||
len = strlen(pathbuf);
|
||||
while (len > 0) {
|
||||
if (stat(pathbuf, &sb) != 0) {
|
||||
serrno = errno;
|
||||
openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf);
|
||||
errno = serrno;
|
||||
if (errno != ENOENT) {
|
||||
serrno = errno;
|
||||
openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf);
|
||||
errno = serrno;
|
||||
}
|
||||
return (-1);
|
||||
}
|
||||
if ((sb.st_uid != root && sb.st_uid != arbitrator) ||
|
||||
|
|
Loading…
Reference in a new issue