[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.53 and 1.54

version 1.53, 2014/03/16 18:09:49 version 1.54, 2014/03/16 18:12:08
Line 466 
Line 466 
         if (!pubkeyfile) {          if (!pubkeyfile) {
                 if ((pubkeyfile = strstr(comment, VERIFYWITH))) {                  if ((pubkeyfile = strstr(comment, VERIFYWITH))) {
                         pubkeyfile += strlen(VERIFYWITH);                          pubkeyfile += strlen(VERIFYWITH);
                         if (strstr(pubkeyfile, "/etc/signify") == NULL ||                          if (strstr(pubkeyfile, "/etc/signify/") == NULL ||
                             strstr(pubkeyfile, "..") != NULL)                              strstr(pubkeyfile, "/../") != NULL)
                                 errx(1, "untrusted path %s", pubkeyfile);                                  errx(1, "untrusted path %s", pubkeyfile);
                 } else                  } else
                         usage("need pubkey");                          usage("need pubkey");

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54