From 8520af7f7d4e8399279534a1fb59530498ee8d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 11 Mar 2014 09:19:06 +0100 Subject: [PATCH] Avoided displaying sync errors in ntfscp with --no-action Do not loop on displaying errors when nothing is to be done --- ntfsprogs/ntfscp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/ntfscp.c b/ntfsprogs/ntfscp.c index 76f2eb42..04685e13 100644 --- a/ntfsprogs/ntfscp.c +++ b/ntfsprogs/ntfscp.c @@ -573,7 +573,7 @@ int main(int argc, char *argv[]) close_attr: ntfs_attr_close(na); close_dst: - while (ntfs_inode_close(out)) { + while (ntfs_inode_close(out) && !opts.noaction) { if (errno != EBUSY) { ntfs_log_error("Sync failed. Run chkdsk.\n"); break;