summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-10-09 14:26:11 +0100
committerColin Watson <cjwatson@debian.org>2022-10-09 14:26:11 +0100
commit514c06799383b4c74fcf64f4c75231863b445db3 (patch)
tree444a64df6ad45c1055045e3d69d3701a22abc0cf
parenta9327d495b2e8dc3b555adf8b7579a4f85e56116 (diff)
Fix error message
* src/straycats.c (check_for_stray): If canonicalizing `catdir` returns NULL, then substitute `catdir` into the "warning: %s is a dangling symlink" message, not `fullpath` (which at this point must be NULL).
-rw-r--r--src/straycats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/straycats.c b/src/straycats.c
index fd4d6e38..1f0572b6 100644
--- a/src/straycats.c
+++ b/src/straycats.c
@@ -237,7 +237,7 @@ static int check_for_stray (MYDBM_FILE dbf)
if (!fullpath) {
if (quiet < 2) {
if (errno == ENOENT)
- error (0, 0, _("warning: %s is a dangling symlink"), fullpath);
+ error (0, 0, _("warning: %s is a dangling symlink"), catdir);
else
error (0, errno,
_("can't resolve %s"),