diff options
author | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-25 21:17:26 +0800 |
---|---|---|
committer | mhsin <mhsin@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-25 21:17:26 +0800 |
commit | a1476dc84787241743986af4084bec42a9ffd1a5 (patch) | |
tree | 2dcc961d7754d0741ef6ee50f70a7240c0aa6f76 | |
parent | b8aec7de4e1eb937905cdf8e61bbfbec6b12571d (diff) | |
download | pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar.gz pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar.bz2 pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar.lz pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar.xz pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.tar.zst pttbbs-a1476dc84787241743986af4084bec42a9ffd1a5.zip |
Fix AID search for blackholed boards.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3865 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/stuff.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 9c0be5ed..1d278426 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -781,8 +781,10 @@ int search_aidu(char *bfile, aidu_t aidu) len /= sizeof(fileheader_t); for(i = 0; i < len; i ++) { - int l = strlen(fhs[i].filename); - if(strncmp(fhs[i].filename, fn, l) == 0) + int l; + if(strcmp(fhs[i].filename, fn) == 0 || + ((aidu & 0xfff) == 0 && (l = strlen(fhs[i].filename)) > 6 && + strncmp(fhs[i].filename, fn, l) == 0)) { if(fhs[i].filemode & FILE_BOTTOM) { |