add EROFS case to lock_file()

From an old email: perhaps this will help users with "run from distro"
issues.
This commit is contained in:
keni
2011-11-16 16:20:45 +00:00
parent d58ea40750
commit 1ce2514014

View File

@@ -1636,6 +1636,15 @@ int retryct;
nesting--;
return FALSE;
# endif
case EROFS:
/* take a wild guess at the underlying cause */
HUP perror(lockname);
HUP raw_printf("Cannot lock %s.", filename);
HUP raw_printf(
"(Perhaps you are running NetHack from inside the distribution package?)."
);
nesting--;
return FALSE;
default:
HUP perror(lockname);
HUP raw_printf(