? bufix.c Index: VERSION =================================================================== RCS file: /home/cvsroot/scsidev/VERSION,v retrieving revision 1.2 retrieving revision 1.2.2.2 diff -u -r1.2 -r1.2.2.2 --- VERSION 2000/01/16 22:35:17 1.2 +++ VERSION 2000/01/27 22:41:23 1.2.2.2 @@ -1 +1 @@ -2.0 +2.0b Index: scsidev.c =================================================================== RCS file: /home/cvsroot/scsidev/scsidev.c,v retrieving revision 1.8 retrieving revision 1.8.2.3 diff -u -r1.8 -r1.8.2.3 --- scsidev.c 2000/01/16 23:28:49 1.8 +++ scsidev.c 2000/01/28 12:14:34 1.8.2.3 @@ -55,7 +55,7 @@ #include -//static char rcsid[] ="$Id: scsidev.c,v 1.8 2000/01/16 23:28:49 garloff Exp $"; +//static char rcsid[] ="$Id: scsidev.c,v 1.8.2.3 2000/01/28 12:14:34 garloff Exp $"; static char *versid = "scsidev " VERSION " 2000/01/16"; #include "config.h" @@ -571,6 +571,7 @@ break; } + *(int*)hostname = 63; // bufflen, used by ioctl_probe (), KG, 2000-01-27 status = ioctl (fd, SCSI_IOCTL_PROBE_HOST, hostname); close (fd); @@ -849,12 +850,19 @@ int line; int devtype_i; char *manufacturer, *model, *serial_number, *name, *devtype, *rev, *host; + char *scsialias; #ifdef DEBUG - configfile = fopen ("scsi.alias", "r"); + scsialias = "scsi.alias"; #else - configfile = fopen ("/etc/scsi.alias", "r"); + scsialias = "/etc/scsi.alias"; #endif + + configfile = fopen (scsialias, "r"); + if (!configfile) { + if (verbose) perror (scsialias); + return; + } line = 0; while (1==1) {