summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-07 22:32:37 -0500
committerJune McEnroe <june@causal.agency>2019-11-07 22:32:37 -0500
commit4498b2298ecd14f933133e555a06f90c8a9640ab (patch)
tree815aa41a1752f06cdf9434c2be25eef9edfe70dd
parentCall clientConsume before clientRecv (diff)
downloadpounce-4498b2298ecd14f933133e555a06f90c8a9640ab.tar.gz
pounce-4498b2298ecd14f933133e555a06f90c8a9640ab.zip
Include path in readlinkat error
-rw-r--r--bounce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 5f615aa..407dd44 100644
--- a/bounce.c
+++ b/bounce.c
@@ -107,7 +107,7 @@ struct SplitPath {
 static bool linkTarget(char *target, size_t cap, int dir, const char *file) {
 	ssize_t len = readlinkat(dir, file, target, cap - 1);
 	if (len < 0 && errno == EINVAL) return false;
-	if (len < 0) err(EX_IOERR, "readlinkat");
+	if (len < 0) err(EX_NOINPUT, "%s", file);
 	target[len] = '\0';
 	return true;
 }
6 -0400'>2019-03-28Remove rc.kfcgiJune McEnroe 2019-01-16Reformat index.html with explore linkJune McEnroe 2019-01-16Return false from keydown handler in exploreJune McEnroe 2019-01-08Draw lines to tile edgeJune McEnroe 2019-01-08Factor out default pathsJune McEnroe 2019-01-08Remove incorrect default coordinatesJune McEnroe 2019-01-07Set img src when explore fragment changesJune McEnroe 2019-01-07Compress PNG data in imageJune McEnroe 2019-01-07madvise MADV_NOCORE in imageJune McEnroe 2019-01-07Add license notice to explore JavaScriptJune McEnroe 2019-01-07Add Q/Home binding in exploreJune McEnroe 2019-01-07Fix explore image URLJune McEnroe 2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe 2019-01-06Add meta viewport to exploreJune McEnroe 2019-01-06Set background and max-width in exploreJune McEnroe 2019-01-06Swallow writes after the connection is closedJune McEnroe 2019-01-06Handle KCGI_HUPJune McEnroe 2019-01-06Install html filesJune McEnroe