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.
pull/2/head
Jean-Pierre André 2015-04-17 09:42:19 +02:00
parent e43f58e0e4
commit 1e8ae121fc
1 changed files with 8 additions and 3 deletions

View File

@ -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: