diff options
author | June McEnroe <june@causal.agency> | 2019-11-07 22:32:37 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-07 22:32:37 -0500 |
commit | 4498b2298ecd14f933133e555a06f90c8a9640ab (patch) | |
tree | 815aa41a1752f06cdf9434c2be25eef9edfe70dd /bounce.c | |
parent | Call clientConsume before clientRecv (diff) | |
download | pounce-4498b2298ecd14f933133e555a06f90c8a9640ab.tar.gz pounce-4498b2298ecd14f933133e555a06f90c8a9640ab.zip |
Include path in readlinkat error
Diffstat (limited to '')
-rw-r--r-- | bounce.c | 2 |
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; } |