version 1.53, 2014/03/16 18:09:49 |
version 1.54, 2014/03/16 18:12:08 |
|
|
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"); |