[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.2 and 1.3

version 1.2, 2001/02/04 15:17:00 version 1.3, 2001/02/04 15:32:25
Line 130 
Line 130 
         int ret, status;          int ret, status;
         char *shell;          char *shell;
         pid_t pid;          pid_t pid;
   
         if (!*args)          if (!*args)
                 args = NULL;                  args = NULL;
   
         if ((shell = getenv("SHELL")) == NULL)          if ((shell = getenv("SHELL")) == NULL)
                 shell = _PATH_BSHELL;                  shell = _PATH_BSHELL;
   
Line 149 
Line 149 
                         debug3("Executing %s", shell);                          debug3("Executing %s", shell);
                         ret = execl(shell, shell, NULL);                          ret = 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));
                 _exit(1);                  _exit(1);
         }          }
Line 161 
Line 161 
                 error("Shell exited with status %d", WEXITSTATUS(status));                  error("Shell exited with status %d", WEXITSTATUS(status));
 }  }
   
 void  void
 local_do_ls(const char *args)  local_do_ls(const char *args)
 {  {
         if (!args || !*args)          if (!args || !*args)
Line 367 
Line 367 
                 if (get_pathname(&cp, path1))                  if (get_pathname(&cp, path1))
                         return(-1);                          return(-1);
                 if (*path1 == NULL) {                  if (*path1 == NULL) {
                         error("You must specify a path after a %s command.",                          error("You must specify a path after a %s command.",
                             cmd);                              cmd);
                         return(-1);                          return(-1);
                 }                  }
Line 403 
Line 403 
                 if (get_pathname(&cp, path1))                  if (get_pathname(&cp, path1))
                         return(-1);                          return(-1);
                 if (*path1 == NULL) {                  if (*path1 == NULL) {
                         error("You must specify a path after a %s command.",                          error("You must specify a path after a %s command.",
                             cmd);                              cmd);
                         return(-1);                          return(-1);
                 }                  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3