summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c3
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