[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.3 and 1.4

version 1.3, 2001/02/04 15:32:25 version 1.4, 2001/02/04 21:41:21
Line 289 
Line 289 
     char **path1, char **path2)      char **path1, char **path2)
 {  {
         const char *cmd, *cp = *cpp;          const char *cmd, *cp = *cpp;
           int base = 0;
         int i, cmdnum;          int i, cmdnum;
   
         /* Skip leading whitespace */          /* Skip leading whitespace */
Line 383 
Line 384 
                 break;                  break;
         case I_LUMASK:          case I_LUMASK:
         case I_CHMOD:          case I_CHMOD:
                   base = 8;
         case I_CHOWN:          case I_CHOWN:
         case I_CHGRP:          case I_CHGRP:
                 /* Get numeric arg (mandatory) */                  /* Get numeric arg (mandatory) */
Line 391 
Line 393 
                             "to the %s command.", cmd);                              "to the %s command.", cmd);
                         return(-1);                          return(-1);
                 }                  }
                 *n_arg = strtoul(cp, (char**)&cp, 0);                  *n_arg = strtoul(cp, (char**)&cp, base);
                 if (!*cp || !strchr(WHITESPACE, *cp)) {                  if (!*cp || !strchr(WHITESPACE, *cp)) {
                         error("You must supply a numeric argument "                          error("You must supply a numeric argument "
                             "to the %s command.", cmd);                              "to the %s command.", cmd);

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