--- freem/src/fmadm.c 2025/03/24 19:25:48 1.11 +++ freem/src/fmadm.c 2025/03/24 20:15:09 1.13 @@ -1,5 +1,5 @@ /* - * $Id: fmadm.c,v 1.11 2025/03/24 19:25:48 snw Exp $ + * $Id: fmadm.c,v 1.13 2025/03/24 20:15:09 snw Exp $ * FreeM Administration Tool * * @@ -24,6 +24,12 @@ * along with FreeM. If not, see . * * $Log: fmadm.c,v $ + * Revision 1.13 2025/03/24 20:15:09 snw + * Set file permissions on freemd.exe on OS/2 in fmadm configure + * + * Revision 1.12 2025/03/24 20:13:34 snw + * Set file permissions on freemd.exe on OS/2 in fmadm configure + * * 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 * @@ -1157,11 +1163,13 @@ void fm_configure (void) unlink (dstfile); fprintf (stderr, "fmadm: running on OS/2; will copy %s to %s\n", srcfile, dstfile); - + if (cp (dstfile, srcfile) != 0) { fprintf (stderr, "fmadm: fatal error copying %s to %s\n", srcfile, dstfile); exit (1); } + + chmod (dstfile, 0755); } #else fprintf (stderr, "fmadm: not running on OS/2\n");