summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/admin.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 2d460012..bfc7f9ea 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -201,9 +201,12 @@ search_user_bybakpwd()
ch = igetch();
if (ch == 'q' || ch == 'Q')
return 0;
- } while (ch < '1' || ch > '8');
+ } while (ch < '1' || ch > '7');
ch -= '1';
- search_key_user(choice[ch], 0);
+ if( access(choice[ch], R_OK) != 0 )
+ vmsg("Àɮפ£¦s¦b");
+ else
+ search_key_user(choice[ch], 0);
return 0;
}