Page MenuHomeFreeBSD

cp: Split the basic_symlink test case in two.
ClosedPublic

Authored by des on Dec 14 2023, 3:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 2:10 PM
Unknown Object (File)
Thu, Nov 20, 2:02 AM
Unknown Object (File)
Nov 6 2025, 8:55 PM
Unknown Object (File)
Nov 3 2025, 5:28 AM
Unknown Object (File)
Oct 29 2025, 5:57 PM
Unknown Object (File)
Oct 29 2025, 5:27 PM
Unknown Object (File)
Oct 29 2025, 5:27 PM
Unknown Object (File)
Oct 29 2025, 5:26 PM
Subscribers

Details

Summary

This test case tests two different things: first, that copying a symlink
results in a file with the same contents as the target of the symlink,
rather than a second symlink, and second, that cp will refuse to copy a
file to itself, or to a link to itself, or a link to its target. Leave
the first part in basic_symlink, move the second part to a new test case
named samefile, and slightly expand both cases.

MFC after: 1 week
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable