tech-userlevel archive

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

Re: [PATCH] Re: iflag/oflag for dd(1)



On Tue, Mar 17, 2015 at 11:49:14AM -0400, Mouse wrote:
> > - O_RDWR: you may want to specify it for the input file
> 
> Why?  Since dd doesn't try to write to the input fd, why could you ever
> want to specify O_RDWR instead of O_RDONLY?

Playing devel's advocat: because you want it to fail if there are no
write permissions for the input.

Joerg


Home | Main Index | Thread Index | Old Index