Re: writing zero bytes in bash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 26 February 2005 19:12, Jeff Pitman <symbiont@xxxxxxxxxx> wrote:
> On Saturday 26 February 2005 15:32, Russell Coker wrote:
> > To unset the fscreate or exec context you have to call write(fd, X,
> > 0) (the value of X doesn't seem to matter as the kernel code doesn't
> > dereference it).
>
> dd

I'm not sure what you are saying here.  Are you suggesting to use dd to write 
zero bytes or that bash should work in a similar way to dd?

dd does not seem capable of actually doing a write of 0.  If you use bs=0 then 
it gives an error code, if you use count=0 then it does nothing (like bash).  
Maybe this should be considered a bug in dd as well, but let's concentrate on 
bash for the moment.

This isn't the type of issue that can be addressed with a one-word reply.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux