--- bsd-games-2.17.orig/hack/hack.main.c 1970-01-01 07:00:01.000000000 +0700 +++ bsd-games-2.17/hack/hack.main.c 2020-06-17 22:09:31.424759883 +0700 @@ -552,8 +552,15 @@ #endif #ifdef HACKDIR - if (dir == NULL) - dir = HACKDIR; + /* Guix: make "hack" target the user's HOME as default. */ + if (dir == NULL) { + /* Guix: i'm sorry for using the plain numbers. */ + char hackdir_str[1026] = ""; + strncat(hackdir_str, getenv("HOME"), 512); + strcat(hackdir_str, "/"); + strncat(hackdir_str, HACKDIR, 512); + dir = hackdir_str; + } #endif if (dir && chdir(dir) < 0) {