[fmac-notify] Change sysattr_list() to only return non-default attributes

sds at tycho.nsa.gov sds at tycho.nsa.gov
Fri Oct 10 05:40:45 PDT 2008


Author: Stephen Smalley <sds at tycho.nsa.gov>
Repository: /hg/fmac/fmac-gate
Latest revision: 83bea1900f31d28767107ea342c333684c84328e
Total changesets: 1
Log message:
Change sysattr_list() to only return non-default attributes
Per Mark's suggestion, change sysattr_list() in libcmdutils to only
return non-default attributes.  This appears to fix the problems with cp
-p and mv from ZFS to ZFS and from ZFS to tmpfs, as it no longer tries
to set the other system attributes.

I just changed the logic to remove any attributes from the response list
that had the default values and then return the modified response list
rather than immediately returning the entire response list whenever a
non-default attribute was found.

Webrev at:  http://cr.opensolaris.org/~sds/sysattrlist/

Files:
	update: usr/src/lib/libcmdutils/common/process_xattrs.c



More information about the fmac-notify mailing list