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;
 }
c6aadf70e33ef63f0a68ca16338a49d0a3f1f&follow=1'>Add support for 'noheader' optionLars Hjemli 2009-07-25cgitrc.5.txt: document 'head-include'Lars Hjemli 2009-07-25ui-blob: return 'application/octet-stream' for binary blobsLars Hjemli 2009-07-25ui-plain: Return 'application/octet-stream' for binary files.Remko Tronçon 2009-06-11use cgit_httpscheme() for atom feedDiego Ongaro 2009-06-11add cgit_httpscheme() -> http:// or https://Diego Ongaro 2009-06-07Return http statuscode 404 on unknown branchLars Hjemli 2009-06-07Add head-include configuration option.Mark Lodato 2009-03-15CGIT 0.8.2.1Lars Hjemli 2009-03-15Fix doc-related glitches in Makefile and .gitignoreLars Hjemli 2009-03-15ui-snapshot: avoid segfault when no filename is specifiedLars Hjemli 2009-03-15fix segfault when displaying empty blobsEric Wong 2009-02-19Add support for HEAD requestsLars Hjemli 2009-02-19Add support for ETag in 'plain' viewLars Hjemli 2009-02-12ui-tree: escape ascii-text properly in hexdump viewLars Hjemli 2009-02-12Makefile: add doc-related targetsLars Hjemli