diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |