HomeFreeBSD

cp: Don't warn for chflags() failing with EOPNOTSUPP if flags == 0

Description

cp: Don't warn for chflags() failing with EOPNOTSUPP if flags == 0

From NetBSD's utils.c 1.5 importing importing BSDI change, with light
formatting changes:

Author: cgd <cgd@NetBSD.org>
Date:   Wed Feb 26 14:40:51 1997 +0000

Patch from BSDI (via Keith Bostic):
>NFS doesn't support chflags; ignore errors unless there's reason
>to believe we're losing bits.  (Note, this still won't be right
>if the server supports flags and we were trying to *remove* flags
>on a file that we copied, i.e., that we didn't create.)

CVS Info: utils.c 1.6

Obtained from: NetBSD
Sponsored by: Netflix

Differential Revision: https://reviews.freebsd.org/D42674

Details

Provenance
impAuthored on Dec 7 2023, 7:32 PM
Differential Revision
D42674: cp: Don't warn for chflags() failing with EOPNOTSUPP if flags == 0
Parents
rG5a52e3d00dd5: cp: Add -N flag, inspired by NetBSD's similar flag
Branches
Unknown
Tags
Unknown