From: keni Date: Wed, 16 Nov 2011 16:20:45 +0000 (+0000) Subject: add EROFS case to lock_file() X-Git-Tag: MOVE2GIT~151 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ce2514014c8d74e2e4ee3bc4479b3c008c4746f;p=nethack add EROFS case to lock_file() From an old email: perhaps this will help users with "run from distro" issues. --- diff --git a/src/files.c b/src/files.c index ce62db20f..107c20574 100644 --- a/src/files.c +++ b/src/files.c @@ -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(