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:
@@ -1636,6 +1636,15 @@ int retryct;
|
|||||||
nesting--;
|
nesting--;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
# endif
|
# 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:
|
default:
|
||||||
HUP perror(lockname);
|
HUP perror(lockname);
|
||||||
HUP raw_printf(
|
HUP raw_printf(
|
||||||
|
|||||||
Reference in New Issue
Block a user