--- nethack-3.3.1/src/files.c Thu Aug 10 03:38:08 2000 +++ nethack-patched/src/files.c Wed Sep 20 15:49:12 2000 @@ -941,8 +941,8 @@ default: HUP perror(lockname); HUP raw_printf( - "Cannot lock %s for unknown reason (%d).", - filename, errnosv); + "Cannot lock %s for unknown reason (%s).", + filename, strerror(errnosv)); nesting--; return FALSE; } @@ -1075,8 +1075,8 @@ * place a file name may be wholly under the player's * control */ - raw_printf("Access to %s denied (%d).", - filename, errno); + raw_printf("Access to %s denied (%s).", + filename, strerror(errno)); wait_synch(); /* fall through to standard names */ } else @@ -1087,8 +1087,8 @@ #if defined(UNIX) || defined(VMS) } else { /* access() above probably caught most problems for UNIX */ - raw_printf("Couldn't open requested config file %s (%d).", - filename, errno); + raw_printf("Couldn't open requested config file %s (%s).", + filename, strerror(errno)); wait_synch(); /* fall through to standard names */ #endif @@ -1135,8 +1135,8 @@ else if (errno != ENOENT) { /* e.g., problems when setuid NetHack can't search home * directory restricted to user */ - raw_printf("Couldn't open default config file %s (%d).", - tmp_config, errno); + raw_printf("Couldn't open default config file %s (%s).", + tmp_config, strerror(errno)); wait_synch(); } # endif