OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Ingo Schwarze (schwarzecvs.openbsd.org)
Date: Mon Jul 06 2009 - 17:12:38 CDT


CVSROOT: /cvs
Module name: src
Changes by: schwarzecvs.openbsd.org 2009/07/06 16:12:38

Modified files:
        usr.bin/mandoc : main.c

Log message:
(1) exit with failure not success if options parsing fails;
(2) use warn not warnx if fstat fails;
(3) getsubopt modifies arg, so printing it on error will print
the wrong thing: use suboptarg instead.
from nicm
ok kristaps and contained in 1.7.21