Diffs, including mail headers from the web source

--- ../orig/reader/ods2.txt     Tue Feb  1 10:35:02 2005
+++ ./ods2reader.c      Wed Feb  2 23:10:34 2005
@@ -1,22 +1,3 @@
-From:  MX%"Free-VMS@lp.se" 11-SEP-1996 04:42:44.33
-To:    MX%"free-VMS@lp.se"
-CC:
-Subj:  ods-2 reader, small mod for display of file id in directories
-
-Return-Path: <owner-free-vms@lp.se>
-X-ListName: Mailing list for the Free-VMS development team <Free-VMS@lp.se>
-Warnings-To: <>
-Errors-To: owner-free-vms@lp.se
-Sender: owner-free-vms@lp.se
-Received: from gce.mv.com by nic.lp.se (MX V4.2 VAX) with SMTP; Wed, 11 Sep
-          1996 04:42:02 +0200
-Date: Tue, 10 Sep 1996 22:41:09 -0400 (EDT)
-From: EVERHART@gce.mv.com
-Reply-To: Free-VMS@lp.se
-To: free-VMS@lp.se
-Message-ID: <960910224109.62@gce.mv.com>
-Subject: ods-2 reader, small mod for display of file id in directories
-
 #ifdef __alpha
 #define __ALPHA 1
 #define Long int
@@ -82,6 +63,10 @@
  *             "long" mean a 64 bit integer while "int" means 32 bits there.
  *             Thus odsrdr -n /dev/rrz4c [000000] would list [000000] dir
  *             of disk on /dev/rrz4c. This can be any file actually.
+ *
+ *     hacked, set DFLTDEV to /dev/cdrom, so don't expect the device in /dev,
+ *              just a local "device", which can be a file or a symbolic link
+ *              to a device (seems more flexible to me).
  * */

 #include <stdio.h>
@@ -111,7 +96,7 @@
 #include <unistd.h>
 #endif
 
-/* #define DFLTDEV "/dev/rrz4c" */
+#define DFLTDEV "/dev/cdrom"
 
 #define err0(msg)      { errmsg(msg,0); return(0); }
 #define err1(msg,arg)  { errmsg(msg,arg); return(0); }
@@ -488,10 +473,12 @@
        if ( pflags&DEV && !openvms(dev) )
                return(0);
 
-        if (natlen > 0 && !(pflags&DEV) && filecnt==1 && !openvms(nativdev) )
-               return(0);
+        if (natlen > 0 ) {
+               if (!(pflags&DEV) && filecnt==1 && !openvms(nativdev) )
+                       return(0);
+       }
 #ifdef DFLTDEV
-        if ( !(pflags&DEV) && filecnt==1 && !openvms(DFLTDEV) )
+        else if ( !(pflags&DEV) && filecnt==1 && !openvms(DFLTDEV) )
                return(0);
 #endif
        if ( vmsfd < 0 )