| 3649 | FILENAME is a command-line argument. */ |
| 3650 | |
| 3651 | static void |
| 3652 | get_link_name (char const *filename, struct fileinfo *f, bool command_line_arg) |
| 3653 | { |
| 3654 | f->linkname = areadlink_with_size (filename, f->stat.st_size); |
| 3655 | if (f->linkname == NULL) |
| 3656 | file_failure (command_line_arg, _("cannot read symbolic link %s"), |
| 3657 | filename); |
| 3658 | } |
| 3659 | |
| 3660 | /* Return true if the last component of NAME is '.' or '..' |
| 3661 | This is so we don't try to recurse on '././././. ...' */ |
no test coverage detected