Return whether DST_DIRFD+DST_RELNAME, with mode MODE, is writable in the sense of 'mv'. Always consider a symbolic link to be writable. */
| 1402 | is writable in the sense of 'mv'. |
| 1403 | Always consider a symbolic link to be writable. */ |
| 1404 | static bool |
| 1405 | writable_destination (int dst_dirfd, char const *dst_relname, mode_t mode) |
| 1406 | { |
| 1407 | return (S_ISLNK (mode) |
| 1408 | || can_write_any_file () |
| 1409 | || faccessat (dst_dirfd, dst_relname, W_OK, AT_EACCESS) == 0); |
| 1410 | } |
| 1411 | |
| 1412 | static bool |
| 1413 | overwrite_ok (struct cp_options const *x, char const *dst_name, |
no outgoing calls
no test coverage detected