* syscalls.cc (faccessat): Fix parens in flag expression when calling

build_fh_name.

	* fhandler_disk_file.cc (fhandler_disk_file::mkdir): Fix typo in
	comment.
	* fhandler_socket.cc (fhandler_socket::bind): Ditto.
	* path.cc (symlink_worker): Ditto.
This commit is contained in:
Corinna Vinschen
2011-08-01 17:01:38 +00:00
parent ab0887572f
commit d32e0bfc08
5 changed files with 18 additions and 8 deletions

View File

@@ -4153,14 +4153,14 @@ faccessat (int dirfd, const char *pathname, int mode, int flags)
set_errno (EINVAL);
else
{
fhandler_base *fh = build_fh_name (path,
PC_KEEP_HANDLE |
(flags & AT_SYMLINK_NOFOLLOW)
? PC_SYM_NOFOLLOW : PC_SYM_FOLLOW,
fhandler_base *fh = build_fh_name (path, (flags & AT_SYMLINK_NOFOLLOW
? PC_SYM_NOFOLLOW
: PC_SYM_FOLLOW)
| PC_KEEP_HANDLE,
stat_suffixes);
if (fh)
{
res = fh->fhaccess (mode, flags & AT_EACCESS);
res = fh->fhaccess (mode, !!(flags & AT_EACCESS));
delete fh;
}
}