mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-27 23:54:25 +02:00
don't always call write_canned_rcfile()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@245 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
8da5f29475
commit
8bfdcb26fe
@ -4,6 +4,8 @@
|
|||||||
if it is present, so beware.
|
if it is present, so beware.
|
||||||
* Fixed some eerie race conditions that prevented writefile() from
|
* Fixed some eerie race conditions that prevented writefile() from
|
||||||
writing a full file all the time. (jilles)
|
writing a full file all the time. (jilles)
|
||||||
|
* Don't write rcfiles if they already exist. (i.e., lost account
|
||||||
|
holders recreating their accounts.
|
||||||
|
|
||||||
1.4.1 (2004/02/13)
|
1.4.1 (2004/02/13)
|
||||||
* Don't explicitly unlock the lock file before fclosing it;
|
* Don't explicitly unlock the lock file before fclosing it;
|
||||||
|
@ -1052,6 +1052,8 @@ newuser ()
|
|||||||
loggedin = 1;
|
loggedin = 1;
|
||||||
|
|
||||||
snprintf (rcfilename, 80, "%srcfiles/%s.nethackrc", myconfig->dglroot, me->username);
|
snprintf (rcfilename, 80, "%srcfiles/%s.nethackrc", myconfig->dglroot, me->username);
|
||||||
|
|
||||||
|
if (access (rcfilename, R_OK) == -1)
|
||||||
write_canned_rcfile (rcfilename);
|
write_canned_rcfile (rcfilename);
|
||||||
|
|
||||||
/* create their ttyrec dir */
|
/* create their ttyrec dir */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user