<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/bin/ln/tests, branch stable/14</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F14</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F14'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-10-09T12:20:52Z</updated>
<entry>
<title>ln: Simplify sameness checks</title>
<updated>2025-10-09T12:20:52Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-10-07T16:23:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5060534b4f186e430fd5ce17de641f35dae32cd'/>
<id>urn:sha1:f5060534b4f186e430fd5ce17de641f35dae32cd</id>
<content type='text'>
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D52927

(cherry picked from commit 18997fb9eca651a7ef13e6755a4d2cdd3ddede10)
</content>
</entry>
<entry>
<title>ln: Improve link(1) variant of ln(1).</title>
<updated>2024-04-08T10:10:41Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-04-04T14:14:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9ab8b45822f30173c408480e8df975084135731'/>
<id>urn:sha1:e9ab8b45822f30173c408480e8df975084135731</id>
<content type='text'>
* Give link(1) its own usage message.
* Use getprogname(3) instead of rolling our own.
* Verify that the target file does not already exist.
* Add tests specific to link(1).

MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44635

(cherry picked from commit bee7cf9e97f6d7bdc918421a93270fa88659808b)
</content>
</entry>
<entry>
<title>ln: Use stdbool, style nits.</title>
<updated>2024-04-04T09:43:14Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-03-27T10:03:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d738ce7cf6a35faa071d3945ae75a7438a7b28e6'/>
<id>urn:sha1:d738ce7cf6a35faa071d3945ae75a7438a7b28e6</id>
<content type='text'>
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	imp, allanjude
Differential Revision:	https://reviews.freebsd.org/D44511

(cherry picked from commit 437d53daf71a357aae960881ef037564736f7441)

ln: Clean up and simplify tests.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44512

(cherry picked from commit e0afcbc85690b6464706ead57103baa0493fdfb2)

ln: Add a test case for ln -sfF.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude, asomers
Differential Revision:	https://reviews.freebsd.org/D44513

(cherry picked from commit 2ae8d34666a6dea4c1c77a1905c7b8cebd6a21f9)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-16T17:55:03Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf'/>
<id>urn:sha1:d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
</content>
</entry>
<entry>
<title>DIRDEPS_BUILD: Connect new directories.</title>
<updated>2017-10-31T00:04:07Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2017-10-31T00:04:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3806950135d2c8633ec0764e8807eacc87cf3e10'/>
<id>urn:sha1:3806950135d2c8633ec0764e8807eacc87cf3e10</id>
<content type='text'>
Sponsored by:	Dell EMC Isilon
</content>
</entry>
<entry>
<title>Don't expect :sF_flag to fail anymore</title>
<updated>2017-06-20T20:50:54Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-06-20T20:50:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=00bc47268644fe380dd19cc54acca1a3a8d9a3d7'/>
<id>urn:sha1:00bc47268644fe380dd19cc54acca1a3a8d9a3d7</id>
<content type='text'>
While here, also add a check to verify that the link target
is updated in the testcase

MFC after:	1 month
MFC with:	r320172
PR:		219943
Differential Revision:	D11167
Submitted by:	shivansh
Sponsored by:	Google (GSoC 2017)
</content>
</entry>
<entry>
<title>Style fixes: clean up leading whitespace (8 single column spaces -&gt; \t)</title>
<updated>2017-06-12T16:53:42Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-06-12T16:53:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0773ff183afd317d92d09bf31e7d67f23d2371b8'/>
<id>urn:sha1:0773ff183afd317d92d09bf31e7d67f23d2371b8</id>
<content type='text'>
MFC after:	1 month
MFC with:	r319714, r319854, r319855, r319856
</content>
</entry>
<entry>
<title>Add a testcase for `ln -sF`</title>
<updated>2017-06-12T16:38:37Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-06-12T16:38:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ed66391a6ed0ccb07adda753137b5220565c2aac'/>
<id>urn:sha1:ed66391a6ed0ccb07adda753137b5220565c2aac</id>
<content type='text'>
The testcase fails today, so mark it with atf_expect_fail: in
particular, the target (B) isn't being unlinked and the documentation
doesn't suggest special handling for directories. Thus, there's either
a doc or an implementation bug in ln(1) that needs to be resolved.

MFC after:	1 month
MFC with:	r319714, r319854, r319855
PR:		219943
Reviewed by:	ngie
Submitted by:	shivansh
Differential Revision:	D11159 (part of a larger diff)
Sponsored by:	Google, Inc (GSoC 2017)
</content>
</entry>
<entry>
<title>Use readlink(1)/stat(1) to query symlinks instead of file(1)</title>
<updated>2017-06-12T16:31:32Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-06-12T16:31:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=07b984360c2ad4d61c481b65f36628225f32bcc6'/>
<id>urn:sha1:07b984360c2ad4d61c481b65f36628225f32bcc6</id>
<content type='text'>
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)
</content>
</entry>
<entry>
<title>bin/ln: Set umask appropriately before creating files for testing</title>
<updated>2017-06-12T14:54:59Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-06-12T14:54:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e61b0afc1c8e04f5e0013d340f373e6a863ebf6f'/>
<id>urn:sha1:e61b0afc1c8e04f5e0013d340f373e6a863ebf6f</id>
<content type='text'>
These changes were missed in D11084

Submitted by:	shivansh
Reviewed by:	asomers
MFC after:	1 month
X-MFC-With:	319714
Sponsored by:	Google, Inc (GSoC 2017)
Differential Revision:	https://reviews.freebsd.org/D11158
</content>
</entry>
</feed>
