From f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3 Mon Sep 17 00:00:00 2001 From: kcwu Date: Mon, 12 Aug 2002 15:04:01 +0000 Subject: don't show the listing if it's hidden git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/mandex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'util') diff --git a/util/mandex.c b/util/mandex.c index 545ca373..1ca9494c 100644 --- a/util/mandex.c +++ b/util/mandex.c @@ -1,4 +1,4 @@ -/* $Id: mandex.c,v 1.7 2002/06/19 13:38:01 lwms Exp $ */ +/* $Id: mandex.c,v 1.8 2002/08/12 15:04:01 kcwu Exp $ */ /* 'mandex -h' to help */ @@ -99,7 +99,9 @@ mandex(level, num_header, fpath) fputs(buf, fndx); if (dashd(fpath)){ ++ndir; - if (*fhdr.title != '#' && level < 10){ + /* I can't find the code to change title? */ + if (*fhdr.title != '#' && level < 10 && + (fhdr.filemode&(FILE_BM|FILE_HIDE))==0){ strcat(fpath, "/.DIR"); mandex(level + 1, buf, fpath); } -- cgit v1.2.3