--- freem/src/fmadm.c 2025/03/24 19:22:16 1.10 +++ freem/src/fmadm.c 2025/03/24 19:25:48 1.11 @@ -1,5 +1,5 @@ /* - * $Id: fmadm.c,v 1.10 2025/03/24 19:22:16 snw Exp $ + * $Id: fmadm.c,v 1.11 2025/03/24 19:25:48 snw Exp $ * FreeM Administration Tool * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: fmadm.c,v $ + * Revision 1.11 2025/03/24 19:25:48 snw + * Make fmadm configure copy freem.exe to freemd.exe for daemon operation on OS/2 systems + * * Revision 1.10 2025/03/24 19:22:16 snw * Make fmadm configure copy freem.exe to freemd.exe for daemon operation on OS/2 systems * @@ -1146,10 +1149,12 @@ void fm_configure (void) #if defined(__OS2__) { char srcfile[PATHLEN]; - char dstfile[PATHLEN]; - + char dstfile[PATHLEN]; + snprintf (srcfile, PATHLEN, "%s/bin/freem.exe", PREFIX); snprintf (dstfile, PATHLEN, "%s/bin/freemd.exe", PREFIX); + + unlink (dstfile); fprintf (stderr, "fmadm: running on OS/2; will copy %s to %s\n", srcfile, dstfile);