diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-19 14:26:38 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-19 14:27:29 -0700 |
commit | b443d80bc635344e415c0ed25c9bd8527c685ca2 (patch) | |
tree | dd384966dbbb60412e8408d3512abbbfb091d78b | |
parent | aa73ede1dc716ff1dc979b70fe7e5eaed989f6ab (diff) | |
download | gzip-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |