projects
/
tfcrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e605e
)
fix quiet mode and final reporting when using -O count.
author
Andrey Rys
<rys@lynxlynx.ru>
Sun, 28 Nov 2021 00:50:05 +0000
(
01:50
+0100)
committer
Andrey Rys
<rys@lynxlynx.ru>
Sun, 28 Nov 2021 00:50:05 +0000
(
01:50
+0100)
VERSION
patch
|
blob
|
history
tfcrypt.c
patch
|
blob
|
history
diff --git
a/VERSION
b/VERSION
index d81cc0710eb6cf9efd5b920a8453e1e07157b6cd..920a1396648024dd8985b3cafa24d7156e3b2610 100644
(file)
--- a/
VERSION
+++ b/
VERSION
@@
-1
+1
@@
-4
2
+4
3
diff --git
a/tfcrypt.c
b/tfcrypt.c
index 3a7d3034bb61e9866521d699f79d1e1cefa4635a..719eff811b0a72b48319b78c80dfd42ab1650301 100644
(file)
--- a/
tfcrypt.c
+++ b/
tfcrypt.c
@@
-1219,7
+1219,10
@@
_wagain: lio = xwrite(dfd, pblk, lrem);
_nowrite: total_processed_dst += ldone;
delta_processed += ldone;
- if (maxlen != NOFSIZE && total_processed_src >= maxlen) break;
+ if (maxlen != NOFSIZE && total_processed_src >= maxlen) {
+ do_stop = YES;
+ break;
+ }
}
errno = 0;
@@
-1374,7
+1377,7
@@
_macwagain: lio = xwrite(dfd, pblk, lrem);
memset(tmpdata, 0, sizeof(tmpdata));
}
- if (verbose || status_timer ||
do_stop == YES
) print_crypt_status(0);
+ if (verbose || status_timer ||
(do_stop == YES && quiet == NO)
) print_crypt_status(0);
xexit(exitcode);
return -1;