+ /* Flags for accessing files to be copied into. POSIX says
+ O_NONBLOCK has unspecified effect on most types of files, but in
+ practice it never harms and sometimes helps. */
+ open_read_flags =
+ (O_RDONLY | O_BINARY | O_NOCTTY | O_NONBLOCK
+ | (dereference_option ? 0 : O_NOFOLLOW)
+ | (atime_preserve_option == system_atime_preserve ? O_NOATIME : 0));
+ fstatat_flags = dereference_option ? 0 : AT_SYMLINK_NOFOLLOW;