| 218 | } |
| 219 | |
| 220 | static void |
| 221 | chdirx(const char *dir) |
| 222 | { |
| 223 | if (!dir) |
| 224 | dir = HACKDIR; |
| 225 | |
| 226 | if (chdir(dir) < 0) |
| 227 | error("Cannot chdir to %s.", dir); |
| 228 | |
| 229 | /* Warn the player if we can't write the record file */ |
| 230 | /* perhaps we should also test whether . is writable */ |
| 231 | check_recordfile(dir); |
| 232 | } |
| 233 | |
| 234 | void |
| 235 | getlock(void) |
no test coverage detected