macos 14 cp Error: fcopyfile failed: Operation not permitted

I copy a file to my netdisk(using rclone

cp -X /usr/local/bin/xx/a.txt [location/to/netdisk]

and get the following error:

cp: ./a.txt: fcopyfile failed: Operation not permitted

what's the specific change of cp on Sonoma??

I STILL HAVE THIS PROBLEM

And I find the problem.

In the document, it says:

-X    Do not copy Extended Attributes (EAs) or resource forks.

However

cp -X /usr/local/bin/xx/a.txt [dst]

still copy "com.apple.quarantine"

Is this a bug, or just a security feature?

macos 14 cp Error: fcopyfile failed: Operation not permitted
 
 
Q