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, Oct 16, 3:02 PM
Unknown Object (File)
Fri, Oct 10, 8:39 PM
Unknown Object (File)
Fri, Oct 10, 8:28 PM
Unknown Object (File)
Fri, Oct 10, 8:24 PM
Unknown Object (File)
Fri, Oct 10, 2:54 PM
Unknown Object (File)
Thu, Oct 9, 3:58 AM
Unknown Object (File)
Tue, Oct 7, 8:18 AM
Unknown Object (File)
Sep 12 2025, 4:51 AM
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