blob: 0aa62a51191fb0215a834ba799ed0ed69a1ec3a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- mdoc_action.c
+++ mdoc_action.c
@@ -609,6 +609,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);
|