if it is present, so beware.
* Fixed some eerie race conditions that prevented writefile() from
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)
* Don't explicitly unlock the lock file before fclosing it;
loggedin = 1;
snprintf (rcfilename, 80, "%srcfiles/%s.nethackrc", myconfig->dglroot, me->username);
- write_canned_rcfile (rcfilename);
+
+ if (access (rcfilename, R_OK) == -1)
+ write_canned_rcfile (rcfilename);
/* create their ttyrec dir */
snprintf (dirname, 100, "%sttyrec/%s", myconfig->dglroot, me->username);