summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-30 06:12:58 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-03-30 06:12:58 +0800
commitb6f9ab17f2a99c99a0667e0f455627d7c2d3967a (patch)
tree79838ad110e95ee7c12450bfacb6009c230b4b41
parent03b52ab944dd5a7c5bd0f868a8ba171a79e2d2b1 (diff)
downloadpttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar.gz
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar.bz2
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar.lz
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar.xz
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.tar.zst
pttbbs-b6f9ab17f2a99c99a0667e0f455627d7c2d3967a.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1634 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/uhash_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/uhash_loader.c b/util/uhash_loader.c
index 771882a0..6b1c68d0 100644
--- a/util/uhash_loader.c
+++ b/util/uhash_loader.c
@@ -121,7 +121,7 @@ int loadmoney(userec_t *user)
{
int fd, money=0;
char path[256];
- sprintf(path,"home/%c/%s", user->userid[0], user->userid);
+ sprintf(path,BBSHOME "/home/%c/%s/.passwd", user->userid[0], user->userid);
if((fd=open(path, O_RDONLY))<0)
return user->money;
if(lseek(fd, (off_t)((int)&(user->money) - (int)user), SEEK_SET) >= 0)