Tree
- Tree:
d41a00b6d1eb7e01a9c61774c08a0b4f02299e06
- Date:
- Message:
- got patch: error if patchfile isn't a regular file `got patch' cannot read patches from non-regular files for obvious reasons. However, it could crash in sendmsg because pledge doesn't allow to send file descriptors referring to directories. So, restrict `got patch' to operate on regular files only and fail otherwise. This still allows to read patches from symlinks since they're resolved at open(2) time and the file type check is performed after. There may be a marginal usefullness in reading patches from fifos, but the current code doesn't allow that anyway since got-read-patch needs a seekable file descriptor anyway. ok tracey@
Makefile | commits | blame |
Makefile.inc | commits | blame |
files/ | |
gotweb.8 | commits | blame |
gotweb.c | commits | blame |
gotweb.conf.5 | commits | blame |
gotweb.h | commits | blame |
libexec/ | |
parse.y | commits | blame |