* mdocml: FreeBSD's man.cgi uses a "default" value for no arch.
@ 2011-12-10 10:59 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-10 10:59 UTC (permalink / raw)
To: source
Log Message:
-----------
FreeBSD's man.cgi uses a "default" value for no arch.
Modified Files:
--------------
mdocml:
cgi.c
Revision Data
-------------
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -Lcgi.c -Lcgi.c -u -p -r1.22 -r1.23
--- cgi.c
+++ cgi.c
@@ -159,10 +159,17 @@ kval_query(struct query *q, const struct
q->whatis = 1;
}
- /* Section "0" means no section when in legacy mode. */
+ /*
+ * Section "0" means no section when in legacy mode.
+ * For some man.cgi scripts, "default" arch is none.
+ */
- if (q->legacy && NULL != q->sec && 0 == strcmp(q->sec, "0"))
- q->sec = NULL;
+ if (q->legacy && NULL != q->sec)
+ if (0 == strcmp(q->sec, "0"))
+ q->sec = NULL;
+ if (q->legacy && NULL != q->arch)
+ if (0 == strcmp(q->arch, "default"))
+ q->arch = NULL;
}
/*
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-10 10:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-10 10:59 mdocml: FreeBSD's man.cgi uses a "default" value for no arch kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).