From 276338a1b2991abcbedf5dffc743e3e5b498f762 Mon Sep 17 00:00:00 2001 From: ptt Date: Mon, 29 Mar 2004 20:15:39 +0000 Subject: debug ..:p git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1628 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index 67012f99..3bb26273 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -99,7 +99,7 @@ passwd_update(int num, userec_t * buf) sethomefile(path, getuserid(num), ".passwd"); buf->money = moneyof(num); - if ((pwdfd = open(path, O_RDWR)) < 0) + if ((pwdfd = open(path, O_WRONLY | O_CREAT)) < 0) exit(1); write(pwdfd, buf, sizeof(userec_t)); close(pwdfd); -- cgit v1.2.3