Unverified Commit 898390cb authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents fe9c341c 65c6afb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1101,7 +1101,7 @@ inline int build_open_flags(const struct open_how *how, struct open_flags *op)
		lookup_flags |= LOOKUP_IN_ROOT;
	if (how->resolve & RESOLVE_CACHED) {
		/* Don't bother even trying for create/truncate/tmpfile open */
		if (flags & (O_TRUNC | O_CREAT | O_TMPFILE))
		if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE))
			return -EAGAIN;
		lookup_flags |= LOOKUP_CACHED;
	}