Bug 16981

Summary: Minor nit with (un)compress and "Operation not supported"
Product: Base System Reporter: peter.edwards <peter.edwards>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description peter.edwards 2000-02-25 10:40:00 UTC
compress uses setfile() to make flags, ownership and mode of the output
the same as those of the original. However, if the filesystem holding the
output file doesn't support these operations, compress prints a warning.
This bites a bit with NFS directories, which always fail the chflags()
operation. If the file system doesn't support the operation, then the
flags data wasn't valid on the original file anyway, so the warning is
spurious.

Fix: chmod() is also documented as returning EOPNOTSUPP, so I guess the same
goes for it as well as chflags(). Patch follows...
How-To-Repeat: $ cd /net/remote/directory
$ compress somefile
compress: chflags: somefile.Z: Operation not supported
$
Comment 1 hoek freebsd_committer freebsd_triage 2000-05-16 06:04:16 UTC
State Changed
From-To: open->closed

Suggested patch applied, thanks.