From: Pádraig Brady
Date: Sun, 10 Dec 2017 00:49:45 +0000 (-0800) Subject: doc: shred: change 'truncate' to the more descriptive 'deallocate' X-Git-Tag: v8.29~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6150b10698a4c3757630aba76720e7262d0590bd;p=thirdparty%2Fcoreutils.git doc: shred: change 'truncate' to the more descriptive 'deallocate' * doc/coreutils.texi (shred invocation): s/truncate/deallocate/. * src/shred.c (usage): Likewise. Fixes https://bugs.gnu.org/29317 --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index ed3a63308e..bd766e4e2a 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -9958,8 +9958,8 @@ destroy it. @command{shred} makes no attempt to detect or report this problem, just as it makes no attempt to do anything about backups. However, since it is more reliable to shred devices than files, @command{shred} by default does -not truncate or remove the output file. This default is more suitable -for devices, which typically cannot be truncated and should not be +not deallocate or remove the output file. This default is more suitable +for devices, which typically cannot be deallocated and should not be removed. Finally, consider the risk of backups and mirrors. @@ -10016,7 +10016,7 @@ the whole file. @var{bytes} can be followed by a size specification like @opindex --remove=wipe @opindex --remove=wipesync @cindex removing files after shredding -After shredding a file, truncate it (if possible) and then remove it. +After shredding a file, deallocate it (if possible) and then remove it. If a file has multiple links, only the named links will be removed. Often the file name is less sensitive than the file data, in which case the optional @var{how} parameter, supported with the long form option, diff --git a/src/shred.c b/src/shred.c index f2b5d27d5e..b1f0b64b22 100644 --- a/src/shred.c +++ b/src/shred.c @@ -186,7 +186,7 @@ If FILE is -, shred standard output.\n\ -s, --size=N shred this many bytes (suffixes like K, M, G accepted)\n\ "), DEFAULT_PASSES); fputs (_("\ - -u truncate and remove file after overwriting\n\ + -u deallocate and remove file after overwriting\n\ --remove[=HOW] like -u but give control on HOW to delete; See below\n\ -v, --verbose show progress\n\ -x, --exact do not round file sizes up to the next full block;\n\