artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46723f1
)
make source vs. formatted guessing a bit more robust
author
schwarze
<schwarze@openbsd.org>
Sun, 13 Jul 2014 12:44:57 +0000
(12:44 +0000)
committer
schwarze
<schwarze@openbsd.org>
Sun, 13 Jul 2014 12:44:57 +0000
(12:44 +0000)
usr.bin/mandoc/cgi.c
patch
|
blob
|
history
diff --git
a/usr.bin/mandoc/cgi.c
b/usr.bin/mandoc/cgi.c
index
c0c1a9c
..
fec807b
100644
(file)
--- a/
usr.bin/mandoc/cgi.c
+++ b/
usr.bin/mandoc/cgi.c
@@
-1,4
+1,4
@@
-/* $Id: cgi.c,v 1.1
0 2014/07/13 12:31:00
schwarze Exp $ */
+/* $Id: cgi.c,v 1.1
1 2014/07/13 12:44:57
schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@usta.de>
@@
-764,6
+764,8
@@
format(const struct req *req, const char *file)
static void
resp_show(const struct req *req, const char *file)
{
+ if ('.' == file[0] || '/' == file[1])
+ file += 2;
if ('c' == *file)
catman(req, file);