[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.11 and 1.12

version 1.11, 2001/02/07 00:10:18 version 1.12, 2001/02/07 13:12:29
Line 24 
Line 24 
   
 /* XXX: finish implementation of all commands */  /* XXX: finish implementation of all commands */
 /* XXX: do fnmatch() instead of using raw pathname */  /* XXX: do fnmatch() instead of using raw pathname */
   /* XXX: globbed ls */
 /* XXX: recursive operations */  /* XXX: recursive operations */
   
 #include "includes.h"  #include "includes.h"
Line 498 
Line 499 
                 *pwd = tmp;                  *pwd = tmp;
                 break;                  break;
         case I_LS:          case I_LS:
                   if (!path1) {
                           do_ls(in, out, *pwd);
                           break;
                   }
                 path1 = make_absolute(path1, *pwd);                  path1 = make_absolute(path1, *pwd);
                 do_ls(in, out, path1?path1:*pwd);                  if ((tmp = do_realpath(in, out, path1)) == NULL)
                           break;
                   xfree(path1);
                   path1 = tmp;
                   if ((aa = do_stat(in, out, path1)) == NULL)
                           break;
                   if ((aa->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) &&
                       !S_ISDIR(aa->perm)) {
                           error("Can't ls: \"%s\" is not a directory", path1);
                           break;
                   }
                   do_ls(in, out, path1);
                 break;                  break;
         case I_LCHDIR:          case I_LCHDIR:
                 if (chdir(path1) == -1)                  if (chdir(path1) == -1)

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12