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)
Tue, Apr 21, 5:58 PM
Unknown Object (File)
Tue, Apr 21, 3:12 PM
Unknown Object (File)
Tue, Apr 21, 10:36 AM
Unknown Object (File)
Tue, Apr 21, 4:33 AM
Unknown Object (File)
Mon, Apr 20, 11:22 PM
Unknown Object (File)
Mon, Apr 20, 8:26 PM
Unknown Object (File)
Mon, Apr 20, 12:13 AM
Unknown Object (File)
Fri, Apr 17, 8:01 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