NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/59942 (dd behaves differently compared to other BSD and GNU implementations when count=0)
The following reply was made to PR bin/59942; it has been noted by GNATS.
From: Andrus Suvalau <suvalov.andrew%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: kre%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost
Subject: Re: bin/59942 (dd behaves differently compared to other BSD and GNU
implementations when count=0)
Date: Mon, 26 Jan 2026 05:40:35 +0100
--0000000000004266600649431caf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hello,
There is a PR for the patch -
https://github.com/NetBSD/src/pull/65. I=E2=80=99ve created it after the is=
sue
creation. If you would like me to apply your comments and update the PR,
please just let me know.
I am not familiar with the process, as It is my first issue here :)
Best regards,
Andrus
W dniu pon., 26 sty 2026 o 04:21 <kre%netbsd.org@localhost> napisa=C5=82(a):
> Synopsis: dd behaves differently compared to other BSD and GNU
> implementations when count=3D0
>
> State-Changed-From-To: open->analyzed
> State-Changed-By: kre%NetBSD.org@localhost
> State-Changed-When: Mon, 26 Jan 2026 03:21:09 +0000
> State-Changed-Why:
> A boolean (not just count =3D=3D 0) is needed, to distinguish
> the case of count=3D0 vs simply not giving the count arg at
> all (no limit) -- the existing code uses count=3D=3D0 as meaning
> no count given, hence the error for count=3D0
>
> Fortunately hoever, the boolean needed is already present
> in ddflags, so nothing new needs to be added.
>
>
>
>
--0000000000004266600649431caf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"auto">Hello,</div><div dir=3D"auto"><br></div><div dir=3D"auto"=
>There is a PR for the patch -=C2=A0<div style=3D"font-size:inherit" dir=3D=
"auto"><a href=3D"https://github.com/NetBSD/src/pull/65">https://github.com=
/NetBSD/src/pull/65</a>. I=E2=80=99ve created it after the issue creation. =
If you would like me to apply your comments and update the PR, please just =
let me know.</div><div style=3D"font-size:inherit" dir=3D"auto"><br></div><=
div style=3D"font-size:inherit" dir=3D"auto">I am not familiar with the pro=
cess, as It is my first issue here :)</div><div style=3D"font-size:inherit"=
dir=3D"auto"><br></div><div style=3D"font-size:inherit" dir=3D"auto">Best =
regards,</div><div style=3D"font-size:inherit" dir=3D"auto">Andrus</div></d=
iv><div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"lt=
r" class=3D"gmail_attr">W dniu pon., 26 sty 2026 o 04:21 <<a href=3D"mai=
lto:kre%netbsd.org@localhost">kre%netbsd.org@localhost</a>> napisa=C5=82(a):<br></div><block=
quote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-w=
idth:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204=
,204,204)">Synopsis: dd behaves differently compared to other BSD and GNU i=
mplementations when count=3D0<br>
<br>
State-Changed-From-To: open->analyzed<br>
State-Changed-By: kre%NetBSD.org@localhost<br>
State-Changed-When: Mon, 26 Jan 2026 03:21:09 +0000<br>
State-Changed-Why:<br>
A boolean (not just count =3D=3D 0) is needed, to distinguish<br>
the case of count=3D0 vs simply not giving the count arg at<br>
all (no limit) -- the existing code uses count=3D=3D0 as meaning<br>
no count given, hence the error for count=3D0<br>
<br>
Fortunately hoever, the boolean needed is already present<br>
in ddflags, so nothing new needs to be added.<br>
<br>
<br>
<br>
</blockquote></div></div>
--0000000000004266600649431caf--
Home |
Main Index |
Thread Index |
Old Index