aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2025-10-17 04:14:46 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2025-10-17 04:14:46 +0200
commit8574eff6927d0e1a6bcee68a0039ef2186de3b6d (patch)
tree11dacbf6ff5c37f4880042ffd788e53f9f8b6510
parent2c9bc4fcc3a7084146e832856f1237ecf5a8fb32 (diff)
Added missing argument to fics_copyfile()
-rw-r--r--FICS/copyfile.c2
-rw-r--r--FICS/obsproc.c4
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");