[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.27 and 1.28

version 1.27, 2001/03/13 22:42:54 version 1.28, 2001/03/14 15:15:58
Line 72 
Line 72 
 #define I_RMDIR         19  #define I_RMDIR         19
 #define I_SHELL         20  #define I_SHELL         20
 #define I_SYMLINK       21  #define I_SYMLINK       21
   #define I_VERSION       22
   
 struct CMD {  struct CMD {
         const char *c;          const char *c;
Line 104 
Line 105 
         { "rm",         I_RM },          { "rm",         I_RM },
         { "rmdir",      I_RMDIR },          { "rmdir",      I_RMDIR },
         { "symlink",    I_SYMLINK },          { "symlink",    I_SYMLINK },
           { "version",    I_VERSION },
         { "!",          I_SHELL },          { "!",          I_SHELL },
         { "?",          I_HELP },          { "?",          I_HELP },
         { NULL,                 -1}          { NULL,                 -1}
Line 135 
Line 137 
         printf("rmdir path                    Remove remote directory\n");          printf("rmdir path                    Remove remote directory\n");
         printf("rm path                       Delete remote file\n");          printf("rm path                       Delete remote file\n");
         printf("symlink oldpath newpath       Symlink remote file\n");          printf("symlink oldpath newpath       Symlink remote file\n");
           printf("version                       Show SFTP version\n");
         printf("!command                      Execute 'command' in local shell\n");          printf("!command                      Execute 'command' in local shell\n");
         printf("!                             Escape to local shell\n");          printf("!                             Escape to local shell\n");
         printf("?                             Synonym for help\n");          printf("?                             Synonym for help\n");
Line 434 
Line 437 
         case I_PWD:          case I_PWD:
         case I_LPWD:          case I_LPWD:
         case I_HELP:          case I_HELP:
           case I_VERSION:
                 break;                  break;
         default:          default:
                 fatal("Command not implemented");                  fatal("Command not implemented");
Line 683 
Line 687 
                 return(-1);                  return(-1);
         case I_HELP:          case I_HELP:
                 help();                  help();
                   break;
           case I_VERSION:
                   printf("SFTP protocol version %d\n", version);
                 break;                  break;
         default:          default:
                 fatal("%d is not implemented", cmdnum);                  fatal("%d is not implemented", cmdnum);

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28