printf $? On Thu, Jan 24, 2013 at 2:45 AM, Janne Johansson <icepic...@gmail.com>wrote:
> Yes, I think the usual "programs should not print if the normal > operation went fine" style should keep pfctl -f some-file quiet. > Having output in the specific config test mode would not hurt, but > it's not something I've been longing for. > > 2013/1/24 Julien Dhaille <jul...@dhaille.com>: > > Oops. > > This one is better, only display on : > > # pfctl -nf /etc/pf.conf > > > > Cheers > > > > Index: pfctl.c > > =================================================================== > > RCS file: /cvs/src/sbin/pfctl/pfctl.c,v > > retrieving revision 1.314 > > diff -u -r1.314 pfctl.c > > --- pfctl.c 19 Sep 2012 15:52:17 -0000 1.314 > > +++ pfctl.c 24 Jan 2013 07:30:15 -0000 > > @@ -2123,6 +2123,7 @@ > > opts &= ~ (PF_OPT_DISABLE | PF_OPT_ENABLE); > > clearopt = showopt = debugopt = NULL; > > altqsupport = 1; > > + fprintf(stderr, "configuration OK\n"); > > } > > > > if (opts & PF_OPT_DISABLE) > > > > > > -- > > Julien Dhaille > > > > > > -- > May the most significant bit of your life be positive. > > -- --------------------------------------------------------------------------------------------------------------------- () ascii ribbon campaign - against html e-mail /\