diff -urNp origin-dump-0.4b45/common/legacy_indexer.c new-dump-0.4b45/common/legacy_indexer.c
--- origin-dump-0.4b45/common/legacy_indexer.c 2016-05-09 07:49:56.000000000 +0200
+++ new-dump-0.4b45/common/legacy_indexer.c 2016-08-11 10:33:33.818048593 +0200
@@ -57,8 +57,8 @@ int magtapeout; /* is output a magnetic
//extern int magtapeout; /* is output a magnetic tape? */
static int gtperr = 0;
-static int gTapeposfd;
-static char *gTapeposfile;
+static int gTapeposfd = -1; /* code below assumes fd >= 0 means do print */
+const char *gTapeposfile;
static char gTps[255];
static int32_t gThisDumpDate;
#endif /* USE_QFA */
diff -urNp origin-dump-0.4b45/dump/main.c new-dump-0.4b45/dump/main.c
--- origin-dump-0.4b45/dump/main.c 2016-05-09 07:46:35.000000000 +0200
+++ new-dump-0.4b45/dump/main.c 2016-08-11 10:31:59.651565976 +0200
@@ -159,6 +159,7 @@ int ntrec = NTREC; /* # blocks in each t
int cartridge = 0; /* Assume non-cartridge tape */
#ifdef USE_QFA
int tapepos = 0; /* assume no QFA tapeposition needed by user */
+extern const char *gTapeposfile;
#endif /* USE_QFA */
int dokerberos = 0; /* Use Kerberos authentication */
long dev_bsize = 1; /* recalculated below */
@@ -401,7 +402,7 @@ main(int argc, char *argv[])
#ifdef USE_QFA
case 'Q': /* create tapeposfile */
- //gTapeposfile = optarg; // FIXME - communicate filename to indexer.
+ gTapeposfile = optarg;
tapepos = 1;
break;
#endif /* USE_QFA */