diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-30 15:27:50 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-03-30 15:27:50 +0800 |
commit | f7580a82e730f46435f9ed3b28ad3d64794123a2 (patch) | |
tree | 53d2b969285997ed8bf4b29fe4dded56037edc12 /mbbsd/passwd.c | |
parent | d5b5abdff83a61cd1f824556e7cd7bfddde70956 (diff) | |
download | pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar.gz pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar.bz2 pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar.lz pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar.xz pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.tar.zst pttbbs-f7580a82e730f46435f9ed3b28ad3d64794123a2.zip |
passwd update debug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1636 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 5cafc88e..e9c3ccb8 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -97,7 +97,7 @@ passwd_update(int num, userec_t * buf) int pwdfd; char path[256]; - sethomefile(path, getuserid(num), ".passwd"); + sethomefile(path, buf->userid, ".passwd"); buf->money = moneyof(num); if ((pwdfd = open(path, O_WRONLY|O_CREAT, 0600)) < 0) exit(1); @@ -126,6 +126,7 @@ passwd_query(int num, userec_t * buf) int pwdfd; char path[256]; + sethomefile(path, getuserid(num), ".passwd"); if((pwdfd = open(path, O_RDONLY)) < 0) { // copy from index // tempory code, will be removed |