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

Diff for /src/usr.bin/ssh/ssh-add.c between version 1.70 and 1.70.2.2

version 1.70, 2004/05/08 00:21:31 version 1.70.2.2, 2005/09/02 03:45:00
Line 145 
Line 145 
                 /* clear passphrase since it did not work */                  /* clear passphrase since it did not work */
                 clear_pass();                  clear_pass();
                 snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",                  snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ",
                    comment);                      comment);
                 for (;;) {                  for (;;) {
                         pass = read_passphrase(msg, RP_ALLOW_STDIN);                          pass = read_passphrase(msg, RP_ALLOW_STDIN);
                         if (strcmp(pass, "") == 0) {                          if (strcmp(pass, "") == 0) {
Line 385 
Line 385 
                         goto done;                          goto done;
                 }                  }
   
                 for(i = 0; default_files[i]; i++) {                  for (i = 0; default_files[i]; i++) {
                         snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir,                          snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir,
                             default_files[i]);                              default_files[i]);
                         if (stat(buf, &st) < 0)                          if (stat(buf, &st) < 0)
Line 398 
Line 398 
                 if (count == 0)                  if (count == 0)
                         ret = 1;                          ret = 1;
         } else {          } else {
                 for(i = 0; i < argc; i++) {                  for (i = 0; i < argc; i++) {
                         if (do_file(ac, deleting, argv[i]) == -1)                          if (do_file(ac, deleting, argv[i]) == -1)
                                 ret = 1;                                  ret = 1;
                 }                  }

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.70.2.2