Only in cpcxfs.patched/: .unpacked diff -ur cpcxfs/src/cpcfs.c cpcxfs.patched/src/cpcfs.c --- cpcxfs/src/cpcfs.c 2017-06-24 21:23:01.000000000 +0200 +++ cpcxfs.patched/src/cpcfs.c 2020-06-15 14:32:15.966515374 +0200 @@ -12,6 +12,7 @@ #include "cpcfs.h" +#include "libgen.h"// for basename /*********** Variables @@ -60,7 +61,7 @@ DirEntry *directory = (DirEntry*)NULL; /* KT - adjusted stamp */ -char stamp[] = "Compiled: " __DATE__ " " __TIME__ " by Kevin Thacker."; +char stamp[] = "Compiled: " __DATE__ " " __TIME__ " by a user of cpc-dev-tool-chain."; char copyright[] = "Original code (C) Dec. 1995 Derik van Ztphen"; @@ -542,8 +543,24 @@ /* system */ dpb_list_add_item(&dpb_list,"System Format", "system", &system_dpb); +#define LOG_STR(VAR) fprintf(stderr, #VAR "=%s\n", VAR); - parse_def_file("cpmdisks.def"); + { +#define PATHSIZE 1024 + char runspec[PATHSIZE]; + ssize_t bytesinrunspec = readlink("/proc/self/exe", runspec, PATHSIZE-1); + runspec[bytesinrunspec]=(char)0; + LOG_STR(runspec); + char *rundir = dirname(runspec); + char *cpcxfsdir = dirname(rundir); + char defpath[PATHSIZE]; + LOG_STR(runspec); + LOG_STR(rundir); + LOG_STR(cpcxfsdir); + snprintf(defpath, PATHSIZE-1, "%s/%s", cpcxfsdir, "cpmdisks.def"); + LOG_STR(defpath); + parse_def_file(defpath); + } ui_main (argc,argv); Only in cpcxfs.patched/src: cpcfs.c.orig Only in cpcxfs.patched/src: cpcfs.c.rej Only in cpcxfs.patched/src: cpcfs.c~ Only in cpcxfs/src: cpcfs.o Only in cpcxfs/src: cpcxfs Only in cpcxfs/src: fs.o diff -ur cpcxfs/src/makefile.lnx cpcxfs.patched/src/makefile.lnx --- cpcxfs/src/makefile.lnx 2013-12-30 12:07:51.000000000 +0100 +++ cpcxfs.patched/src/makefile.lnx 2020-06-15 14:31:20.776928378 +0200 @@ -28,7 +28,8 @@ LDARGS = $(LDOPT) ifdef LINUX_VER -LDARGS += -ltermcap +LDARGS += -lncurses +# LDARGS += -ltermcap # LDARGS += -lreadline -lhistory -ltermcap endif Only in cpcxfs/src: match.o Only in cpcxfs/src: readdef.o Only in cpcxfs/src: tools.o Only in cpcxfs/src: ui.o Only in cpcxfs/src: unix.o