tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: two modifications to dd(1)
Iain Hibbert <plunky%rya-online.net@localhost> writes:
> <tsugutomo.enami%jp.sony.com@localhost> wrote:
> >1) Copy argument before modifying it so that ps(1) shows entire
> > options.
>
> wrt this, is it worth not exiting for strdup() failure? I mean, the consequ=
> ences are not fatal because we can fall back to using the argv string direc=
> tly..
Anyway, dd tries to allocate buffer for i/o later. Of course it may
succeed even if alocation here fails, but it depends on malloc
implementaion and I guess it is quite rare case.
enami.
Home |
Main Index |
Thread Index |
Old Index