[BACK]Return to sftp-int.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/sftp-int.c between version 1.35 and 1.36

version 1.35, 2001/04/12 23:17:54 version 1.36, 2001/04/15 08:43:46
Line 148 
Line 148 
 void  void
 local_do_shell(const char *args)  local_do_shell(const char *args)
 {  {
         int ret, status;          int status;
         char *shell;          char *shell;
         pid_t pid;          pid_t pid;
   
Line 165 
Line 165 
                 /* XXX: child has pipe fds to ssh subproc open - issue? */                  /* XXX: child has pipe fds to ssh subproc open - issue? */
                 if (args) {                  if (args) {
                         debug3("Executing %s -c \"%s\"", shell, args);                          debug3("Executing %s -c \"%s\"", shell, args);
                         ret = execl(shell, shell, "-c", args, NULL);                          execl(shell, shell, "-c", args, NULL);
                 } else {                  } else {
                         debug3("Executing %s", shell);                          debug3("Executing %s", shell);
                         ret = execl(shell, shell, NULL);                          execl(shell, shell, NULL);
                 }                  }
                 fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,                  fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
                     strerror(errno));                      strerror(errno));

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36