MCPcopy Create free account
hub / github.com/coreutils/coreutils / get_link_name

Function get_link_name

src/ls.c:3651–3658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3649 FILENAME is a command-line argument. */
3650
3651static void
3652get_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 '././././. ...' */

Callers 1

gobble_fileFunction · 0.85

Calls 1

file_failureFunction · 0.85

Tested by

no test coverage detected