From: Ian Jackson Date: Sun, 27 Nov 2016 16:25:45 +0000 (+0000) Subject: regress: hfuzz: Do not redirect stdout X-Git-Tag: adns-1.6.0~70 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=sidebyside;h=98d3c0886ef79d2a0349abed21645002e8a25e7e;p=adns.git regress: hfuzz: Do not redirect stdout (And anyway the dup2 was the wrong way round.) Signed-off-by: Ian Jackson --- diff --git a/regress/hfuzz.c b/regress/hfuzz.c index e09089f..467f025 100644 --- a/regress/hfuzz.c +++ b/regress/hfuzz.c @@ -121,8 +121,6 @@ int main(int argc, char **argv) { if (dup2(fileno(t_stdin), 0)) baile("dup2 t_stdin"); if (fseek(stdin, 0, SEEK_SET)) baile("rewind t_stdin"); - if (dup2(1,2)!=2) baile("redirect stderr to stdout"); - int estatus = Hmain(t_argc, t_argv); Texit(estatus); }