/usr/lib/games/nethack/recover-helper is in nethack-common 3.6.0-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/sh
set -e
cd /var/games/nethack || exit 1
for file in *.0; do
# We only try to recover our own files, and ignore the others.
if [ -f "$file" ] && [ ! -L "$file" ] && [ -O "$file" ]; then
/usr/lib/games/nethack/recover "/var/games/nethack/$file"
fi
done
exit 0
|