From 1ce2514014c8d74e2e4ee3bc4479b3c008c4746f Mon Sep 17 00:00:00 2001 From: keni Date: Wed, 16 Nov 2011 16:20:45 +0000 Subject: [PATCH] add EROFS case to lock_file() From an old email: perhaps this will help users with "run from distro" issues. --- src/files.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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( -- 2.50.1