mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-23 03:06:48 +00:00
Don't print pathconf() errors if the target file doesn't exist.
The subsequent acl_get_file(3) call will simply echo the same error. PR: 229930 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f024dd3bf0
commit
10cb5344fd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339781
|
@ -174,8 +174,8 @@ handle_file(FTS *ftsp, FTSENT *file)
|
|||
} else if (ret == 0) {
|
||||
if (acl_type == ACL_TYPE_NFS4)
|
||||
acl_type = ACL_TYPE_ACCESS;
|
||||
} else if (ret < 0 && errno != EINVAL) {
|
||||
warn("%s: pathconf(..., _PC_ACL_NFS4) failed",
|
||||
} else if (ret < 0 && errno != EINVAL && errno != ENOENT) {
|
||||
warn("%s: pathconf(_PC_ACL_NFS4) failed",
|
||||
file->fts_path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue