version 1.9, 2025/03/24 19:19:42
|
version 1.13, 2025/03/24 20:15:09
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* 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 |
|
* |
|
* 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 |
|
* |
* Revision 1.9 2025/03/24 19:19:42 snw |
* Revision 1.9 2025/03/24 19:19:42 snw |
* Make fmadm configure copy freem.exe to freemd.exe for daemon operation on OS/2 systems |
* Make fmadm configure copy freem.exe to freemd.exe for daemon operation on OS/2 systems |
* |
* |
Line 1143 void fm_configure (void)
|
Line 1155 void fm_configure (void)
|
#if defined(__OS2__) |
#if defined(__OS2__) |
{ |
{ |
char srcfile[PATHLEN]; |
char srcfile[PATHLEN]; |
char dstfile[PATHLEN]; |
char dstfile[PATHLEN]; |
|
|
snprintf (srcfile, PATHLEN, "%s/bin/freem.exe", PREFIX); |
snprintf (srcfile, PATHLEN, "%s/bin/freem.exe", PREFIX); |
snprintf (dstfile, PATHLEN, "%s/bin/freemd.exe", PREFIX); |
snprintf (dstfile, PATHLEN, "%s/bin/freemd.exe", PREFIX); |
|
|
fprintf (stderr, "fmadm: running on OS/2; will copy %s to %s\n" srcfile, dstfile); |
|
|
|
|
unlink (dstfile); |
|
|
|
fprintf (stderr, "fmadm: running on OS/2; will copy %s to %s\n", srcfile, dstfile); |
|
|
if (cp (dstfile, srcfile) != 0) { |
if (cp (dstfile, srcfile) != 0) { |
fprintf (stderr, "fmadm: fatal error copying %s to %s\n", srcfile, dstfile); |
fprintf (stderr, "fmadm: fatal error copying %s to %s\n", srcfile, dstfile); |
exit (1); |
exit (1); |
} |
} |
|
|
|
chmod (dstfile, 0755); |
} |
} |
#else |
#else |
fprintf (stderr, "fmadm: not running on OS/2\n"); |
fprintf (stderr, "fmadm: not running on OS/2\n"); |