--- a/common/legacy_indexer.c
+++ b/common/legacy_indexer.c
@@ -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 */
+/* static */ char *gTapeposfile;
 static char gTps[255];
 static int32_t gThisDumpDate;
 #endif /* USE_QFA */
--- a/dump/main.c
+++ b/dump/main.c
@@ -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 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;  // FIXME - communicate filename to indexer.
 			tapepos = 1;
 			break;
 #endif /* USE_QFA */
