diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-12 23:04:01 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-12 23:04:01 +0800 |
commit | f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3 (patch) | |
tree | aff8e1d26e078f208be3b5c59742f1f59f04743a /util/mandex.c | |
parent | 4e547cbc0d8155744adbae36b6fedd276e9d2dc5 (diff) | |
download | pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar.gz pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar.bz2 pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar.lz pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar.xz pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.tar.zst pttbbs-f50ca0d5f4a2ef5d6a745b04a0547f294f7e5dc3.zip |
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
Diffstat (limited to 'util/mandex.c')
-rw-r--r-- | util/mandex.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |