From 1e8ae121fc5783e31db2bb5654bb8e1900bc88e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 17 Apr 2015 09:42:19 +0200 Subject: [PATCH] Rephrased a misleading report message in ntfswipe When using the "--no-action" option, ntfswipe should display a count of would-be wiped bytes without suggesting any has been wiped. --- ntfsprogs/ntfswipe.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ntfsprogs/ntfswipe.c b/ntfsprogs/ntfswipe.c index fe251cd1..0d360ee5 100644 --- a/ntfsprogs/ntfswipe.c +++ b/ntfsprogs/ntfswipe.c @@ -2261,9 +2261,14 @@ int main(int argc, char *argv[]) break; } - ntfs_log_info( - "%lld bytes were wiped (excluding undelete data)\n", - (long long)total); + if (opts.noaction || opts.info) + ntfs_log_info("%lld bytes would be wiped" + " (excluding undelete data)\n", + (long long)total); + else + ntfs_log_info("%lld bytes were wiped" + " (excluding undelete data)\n", + (long long)total); } result = 0; umount: