summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-08-19 14:26:38 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-08-19 14:27:29 -0700
commitb443d80bc635344e415c0ed25c9bd8527c685ca2 (patch)
treedd384966dbbb60412e8408d3512abbbfb091d78b
parentaa73ede1dc716ff1dc979b70fe7e5eaed989f6ab (diff)
downloadgzip-b443d80bc635344e415c0ed25c9bd8527c685ca2.tar.gz
gzip: clarify "other links" diagnostic
* gzip.c (treat_file): Instead of saying "gzip: FOO has 1 other link -- unchanged", say "gzip: FOO has 1 other link -- file ignored". This is clearer when -k is also used (Bug#50097).
-rw-r--r--gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gzip.c b/gzip.c
index 0123f82..f75b614 100644
--- a/gzip.c
+++ b/gzip.c
@@ -942,10 +942,10 @@ local void treat_file(iname)
}
if (2 <= istat.st_nlink)
{
- WARN ((stderr, "%s: %s has %lu other link%c -- unchanged\n",
+ WARN ((stderr, "%s: %s has %lu other link%s -- file ignored\n",
program_name, ifname,
(unsigned long int) istat.st_nlink - 1,
- istat.st_nlink == 2 ? ' ' : 's'));
+ istat.st_nlink == 2 ? "" : "s"));
close (ifd);
return;
}