freebsd-src/bin/ln
Enji Cooper 07b984360c Use readlink(1)/stat(1) to query symlinks instead of file(1)
file(1) can be compiled out of the system via MK_FILE == no, and the
output isn't guaranteed to be stable. It's better to use stat(1)/readlink(1)
instead to query symlink/file paths.

MFC after:	1 month
MFC with:	r319714, r319854
Reported by:	ngie
Submitted by:	shivansh
Differential Revision:	D11159 (part of a larger diff)
Sponsored by:	Google, Inc (GSoC 2017)
2017-06-12 16:31:32 +00:00
..
tests Use readlink(1)/stat(1) to query symlinks instead of file(1) 2017-06-12 16:31:32 +00:00
ln.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ln.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Add tests for ln(1) 2017-06-08 19:09:55 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
symlink.7 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00