writing zero bytes in bash

Tim Waugh twaugh at redhat.com
Sat Feb 26 17:54:26 UTC 2005

On Sat, Feb 26, 2005 at 06:32:13PM +1100, Russell Coker wrote:

> To unset the fscreate or exec context you have to write zero bytes 
> to /proc/self/attr/fscreate or /proc/self/attr/exec respectively.

Oh dear, really?  How badly designed.  The man page for write() says
that writing no bytes causes write() to return 0 "without causing any
other effect".

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20050226/cf6634b5/attachment.sig>

More information about the fedora-devel-list mailing list