From a44818e3b6939d11973d3feb14f4755b73ea71a2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 2 Dec 2024 12:58:50 +0100 Subject: game_save: log link() error --- FICS/gamedb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'FICS') diff --git a/FICS/gamedb.c b/FICS/gamedb.c index fce8ea3..3b6d025 100644 --- a/FICS/gamedb.c +++ b/FICS/gamedb.c @@ -1575,8 +1575,9 @@ game_save(int g) /* * Create link for easier stored game finding */ - if (bp->login[0] != wp->login[0]) - link(fname, lname); + if (bp->login[0] != wp->login[0] && + link(fname, lname) != 0) + warn("%s: link() error", __func__); return 0; } -- cgit v1.2.3