diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-29 11:10:13 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-29 11:10:13 +0800 |
commit | c7b811d2e9a468461ebbb1b52fdbd54e417d1481 (patch) | |
tree | c7b14e8d857e790ab80c21123fca2b0e75cd635c | |
parent | 933f95ff81d570bffb98f0f1099cf60e0792fc2a (diff) | |
download | pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar.gz pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar.bz2 pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar.lz pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar.xz pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.tar.zst pttbbs-c7b811d2e9a468461ebbb1b52fdbd54e417d1481.zip |
not show symlink while selecting
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2029 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/name.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c index 9fe2ce97..4ae7f48d 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -666,8 +666,10 @@ completeboard_compar(int where, char *str, int len) int completeboard_permission(int where) { - return ((GROUPOP() || HasPerm(SHM->bsorted[0][where])) && - !(SHM->bsorted[0][where]->brdattr & BRD_GROUPBOARD)); + boardheader_t *bptr = &SHM->bsorted[0][where]; + return (!(bptr->brdattr & BRD_SYMBOLIC) && + (GROUPOP() || HasPerm(bptr)) && + !(bptr->brdattr & BRD_GROUPBOARD)); } char * |