From 8574eff6927d0e1a6bcee68a0039ef2186de3b6d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 17 Oct 2025 04:14:46 +0200 Subject: Added missing argument to fics_copyfile() --- FICS/copyfile.c | 2 +- FICS/obsproc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FICS/copyfile.c b/FICS/copyfile.c index 86ec3bf..f2f6a9c 100644 --- a/FICS/copyfile.c +++ b/FICS/copyfile.c @@ -107,6 +107,6 @@ main(int argc, char *argv[]) { if (argc != 3) errx(1, "bogus number of args"); - return (fics_copyfile(argv[1], argv[2]) ? EXIT_SUCCESS : EXIT_FAILURE); + return (fics_copyfile(argv[1], argv[2], true) ? 0 : 1); } #endif diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 9eaea96..375ced3 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -1828,7 +1828,7 @@ jsave_journalentry(int p, char save_spot, int p1, char from_spot, char *to_file) name_to, save_spot); unlink(fname2); - if (!fics_copyfile(fname, fname2)) { + if (!fics_copyfile(fname, fname2, true)) { pprintf(p, "System command in jsave_journalentry failed!\n"); pprintf(p, "Please report this to an admin.\n"); fprintf(stderr, "FICS: System command failed in " @@ -1898,7 +1898,7 @@ jsave_history(int p, char save_spot, int p1, int from, char *to_file) save_spot); unlink(jfname); - if (!fics_copyfile(HistoryFname, jfname)) { + if (!fics_copyfile(HistoryFname, jfname, true)) { pprintf(p, "System command in jsave_history " "failed!\n"); pprintf(p, "Please report this to an admin.\n"); -- cgit v1.2.3