summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 11:12:03 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 11:12:03 +0800
commit9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02 (patch)
tree75b260f630ec4a48715d6ff3692f4ed6b1ee6a04
parent8059d1525a1b5bfa7192a68d2fe12242e47f0145 (diff)
downloadpttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar.gz
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar.bz2
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar.lz
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar.xz
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.tar.zst
pttbbs-9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02.zip
add file existence test in (O)ld User data. suggested by ltlmouse
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2152 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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;
}