--- texinfo-3.9/util/install-info.c.orig	Thu Oct  3 19:13:37 1996
+++ texinfo-3.9/util/install-info.c	Wed Dec 18 21:59:42 1996
@@ -604,6 +604,9 @@
       fatal ("no info dir entry in `%s'", infile);
 
   /* Now read in the Info dir file.  */
+  if (strcmp (dirfile, "-") == 0)
+    fatal ("dirfile cannot be - for stdin");
+
   dir_data = readfile (dirfile, &dir_size);
   dir_lines = findlines (dir_data, dir_size, &dir_nlines);
 
@@ -925,8 +928,7 @@
   char *data = (char *) xmalloc (data_size);
   int filled = 0;
   int nread = 0;
-
-  int desc = open (filename, O_RDONLY);
+  int desc = strcmp (filename, "-") == 0 ? 0 : open (filename, O_RDONLY);
 
   if (desc < 0)
     pfatal_with_name (filename);
