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

Diff for /src/usr.bin/signify/signify.c between version 1.51 and 1.52

version 1.51, 2014/03/16 17:58:28 version 1.52, 2014/03/16 18:03:19
Line 461 
Line 461 
                 readb64file(sigfile, &sig, sizeof(sig), comment);                  readb64file(sigfile, &sig, sizeof(sig), comment);
         }          }
         if (!pubkeyfile) {          if (!pubkeyfile) {
                 if ((pubkeyfile = strstr(comment, VERIFYWITH)))                  if ((pubkeyfile = strstr(comment, VERIFYWITH))) {
                         pubkeyfile += strlen(VERIFYWITH);                          pubkeyfile += strlen(VERIFYWITH);
                 else                          if (strstr(pubkeyfile, "/etc/signify") == NULL ||
                               strstr(pubkeyfile, "..") != NULL)
                                   errx(1, "untrusted path %s", pubkeyfile);
                   } else
                         usage("need pubkey");                          usage("need pubkey");
         }          }
         readb64file(pubkeyfile, &pubkey, sizeof(pubkey), NULL);          readb64file(pubkeyfile, &pubkey, sizeof(pubkey), NULL);

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52