Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/3/84; site genrad.UUCP
Path: utzoo!decvax!genrad!sources-request
From: sources-request@genrad.UUCP
Newsgroups: mod.sources
Subject: small patch to remote tape library
Message-ID: <1009@genrad.UUCP>
Date: Mon, 12-Aug-85 18:54:00 EDT
Article-I.D.: genrad.1009
Posted: Mon Aug 12 18:54:00 1985
Date-Received: Tue, 13-Aug-85 20:54:33 EDT
Sender: john@genrad.UUCP
Lines: 101
Approved: john@genrad.UUCP

Mod.sources:  Volume 2, Issue 36
Submitted by: Arnold Robbins 


There was a small bug in the remote tape library just posted, discovered
by Fred Fish (unisoft!fnf).  Here is a context diff.

Arnold Robbins
arnold@gatech.{CSNET, UUCP}
------------------------------------------------------------------------
*** rmtlib.c	Thu Aug  8 11:05:31 1985
--- nrmtlib.c	Thu Aug  8 11:04:11 1985
***************
*** 404,410
  }
  
  
- #ifdef RMTIOCTL
  /*
   *	_rmt_ioctl --- perform raw tape operations remotely
   */

--- 404,409 -----
  }
  
  
  /*
   *	_rmt_ioctl --- perform raw tape operations remotely
   */
***************
*** 409,414
   *	_rmt_ioctl --- perform raw tape operations remotely
   */
  
  static _rmt_ioctl(fildes, op, arg)
  int fildes, op;
  char *arg;

--- 408,414 -----
   *	_rmt_ioctl --- perform raw tape operations remotely
   */
  
+ #ifdef RMTIOCTL
  static _rmt_ioctl(fildes, op, arg)
  int fildes, op;
  char *arg;
***************
*** 488,494
   *	The preprocessor can be used to remap these the rmtopen(), etc
   *	thus minimizing source changes:
   *
!  *		#ifdef REMOTETAPE
   *		#  define access rmtaccess
   *		#  define close rmtclose
   *		#  define creat rmtcreat

--- 488,494 -----
   *	The preprocessor can be used to remap these the rmtopen(), etc
   *	thus minimizing source changes:
   *
!  *		#ifdef 
   *		#  define access rmtaccess
   *		#  define close rmtclose
   *		#  define creat rmtcreat
***************
*** 680,685
  {
  	if (isrmt (fildes))
  	{
  		errno = EOPNOTSUPP;
  		return (-1);		/* For now  (fnf) */
  	}

--- 680,688 -----
  {
  	if (isrmt (fildes))
  	{
+ #ifdef RMTIOCTL
+ 		return (_rmt_ioctl (fildes, request, arg));
+ #else
  		errno = EOPNOTSUPP;
  		return (-1);		/* For now  (fnf) */
  #endif
***************
*** 682,687
  	{
  		errno = EOPNOTSUPP;
  		return (-1);		/* For now  (fnf) */
  	}
  	else
  	{

--- 685,691 -----
  #else
  		errno = EOPNOTSUPP;
  		return (-1);		/* For now  (fnf) */
+ #endif
  	}
  	else
  	{