blob: 2660539e37d60bba77f13876da020b9c6c4b2718 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -2143,6 +2143,8 @@ post_os(POST_ARGS)
mdoc_nmsg(m, n, MANDOCERR_MEM);
return(0);
}
+ if (strncmp(utsname.sysname, "FreeBSD", sizeof("FreeBSD")) == 0)
+ strtok(utsname.release, "-");
if (strlcat(buf, utsname.release, BUFSIZ) >= BUFSIZ) {
mdoc_nmsg(m, n, MANDOCERR_MEM);
return(0);
|