🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jonathan I. Kamens Mon, 14 Dec 1992 12:27
addendum to patch for --rsh-command
#1182
Author: Jonathan I. Kamens
Date: Mon, 14 Dec 1992 12:27
64 lines
2154 bytes
*** 1.2	1992/12/14 18:46:23
--- rtapelib.c	1992/12/14 22:23:21
***************
*** 274,284 ****
--- 274,295 ----
    char device[CMDBUFSIZE];	/* The remote device name.  */
    char login[CMDBUFSIZE];		/* The remote user name.  */
    char *sys, *dev, *user;	/* For copying into the above buffers.  */
+   char *rsh_name;
  
    sys = system;
    dev = device;
    user = login;
  
+   if (rsh_command) {
+     rsh_name = strrchr(rsh_command, '/');
+     if (rsh_name) {
+       rsh_name++;
+     }
+     else {
+       rsh_name = rsh_command;
+     }
+   }
+ 
    /* Find an unused pair of file descriptors.  */
  
    for (i = 0; i < MAXUNIT; i++)
***************
*** 371,377 ****
        if (*login)
  	{
  	  if (rsh_command) {
! 	    execl (rsh_command, "rsh", system, "-l", login,
  		   "/etc/rmt", (char *) 0);
  	  }
  	  execl ("/usr/ucb/rsh", "rsh", system, "-l", login,
--- 382,388 ----
        if (*login)
  	{
  	  if (rsh_command) {
! 	    execl (rsh_command, rsh_name, system, "-l", login,
  		   "/etc/rmt", (char *) 0);
  	  }
  	  execl ("/usr/ucb/rsh", "rsh", system, "-l", login,
***************
*** 388,394 ****
        else
  	{
  	  if (rsh_command) {
! 	    execl (rsh_command, "rsh", system,
  		   "/etc/rmt", (char *) 0);
  	  }
  	  execl ("/usr/ucb/rsh", "rsh", system,
--- 399,405 ----
        else
  	{
  	  if (rsh_command) {
! 	    execl (rsh_command, rsh_name, system,
  		   "/etc/rmt", (char *) 0);
  	  }
  	  execl ("/usr/ucb/rsh", "rsh", system,

Jonathan Kamens                                         jik@MIT.Edu
MIT Information Systems/Athena              Moderator, news.answers
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads