ACLs and cp

James Buster bitbug at seal.engr.sgi.com
Thu Jan 13 00:35:02 GMT 2000


On Jan 13,  1:02am, Andreas Gruenbacher wrote:
} I have a question concerning the cp utility.
} 
} DS17 specifies that these tools retain the ACLs of files.

I assume DS17 means 'Draft Specification 17'.

} Now how does the umask affect the behavior (and how does a default ACL)?
} Should cp simply copy the permissions 1-1, or should it copy the
} permissions, minus those masked out by the umask?

It should probably do the latter. An acl_set_file() followed by chmod()
would do the right thing.

} The GNU fileutils do a chmod() with the umask bits masked out after copying:

Irix cp also does that.

-- 
Planet Bog -- pools of toxic chemicals bubble under a choking
atomsphere of poisonous gases... but aside from that, it's not
much like Earth.
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message



More information about the posix1e mailing list