aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-09 01:37:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-09 01:37:03 +0000
commitb569fb3a78ad114031c38c25bfcbca862217ae64 (patch)
tree003e16b951414e7b6df87e45471d825592e9bb3a /main.c
parentd5f546d82f5e5c88fe3f55abddb6ad82393ee6fd (diff)
downloadmandoc-b569fb3a78ad114031c38c25bfcbca862217ae64.tar.gz
mandoc-b569fb3a78ad114031c38c25bfcbca862217ae64.tar.zst
mandoc-b569fb3a78ad114031c38c25bfcbca862217ae64.zip
Warnings and errors that occur during mdoc_validate()
or during man_validate() have to affect the mandoc(1) EXIT STATUS. Many thanks to <Yuri dot Pankov at gmail dot com> (illumos developer) for reporting this regression.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 30ef3d6f..0aa714bb 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,7 @@
-/* $Id: main.c,v 1.277 2016/09/18 15:47:45 schwarze Exp $ */
+/* $Id: main.c,v 1.278 2017/01/09 01:37:03 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -781,6 +781,7 @@ parse(struct curparse *curp, int fd, const char *file)
break;
}
}
+ mparse_updaterc(curp->mp, &rc);
}
static void