Commit Graph

63 Commits

Author SHA1 Message Date
Michael Wehr
2532fc3ca3 switch to fork/exec/dup2 instead of popen
To get rid of the problems from having to escape certain special chars
when using popen to call the find and du system commands, on suggestion
of N-R-K this switches popen with a fork/exec/dup2 based approach.
See https://github.com/jarun/advcpmv/pull/14#issuecomment-1035880454 and
https://github.com/jarun/advcpmv/pull/14#issuecomment-1035892465.
2022-02-13 15:50:06 +01:00
Michael Wehr
fb08e1aba6 backport changes to 8.32 patch 2022-01-12 20:11:02 +01:00
Michael Wehr
8a8af288bb fix output of ftime instead of ttime 2022-01-11 23:28:10 +01:00
Michael Wehr
30b6aff569 refactor format_time function and calls to fix memory leak 2022-01-11 22:11:46 +01:00
Michael Wehr
1e12a7c529 add remaining time for file 2022-01-11 20:54:12 +01:00
Michael Wehr
53a449f84c move total remaining time to global bar and fix format_time 2022-01-10 23:39:30 +01:00
Michael Wehr
b79170e69b show total number of files to copy 2022-01-09 21:18:46 +01:00
Michael Wehr
ae89bfdb24 use function to also calculate and format elapsed time 2022-01-09 21:15:26 +01:00
Michael Wehr
d09e9fb8b6 backport changes to 8.32 patch 2022-01-04 22:00:35 +01:00
Michael Wehr
d8013b9f35 add missed comments to identify all progress mod changes 2022-01-04 21:58:45 +01:00
Michael Wehr
2f468f6896 show elapsed time in good-bye message as xh xm xs instead seconds only 2022-01-04 21:11:43 +01:00
Michael Wehr
801478c31a backport changes to 8.32 patch 2021-12-25 11:28:22 +01:00
Michael Wehr
cf51b9bd8b switch back to using calloc instead of malloc
using malloc generated errors when memory leak checking with valgrind
because malloc creates uninitialized space
2021-12-25 11:16:03 +01:00
Michael Wehr
c8149fab75 show global progress bar in some cases where not shown before
when using wildcards:
cp -r -g ./src/normal/* ./sinkhole/
when giving multiple source files:
cp -r -g ./src/normal/{testfile0,testfile2}
or
cp -g -t ../../sinkhole/ testfile0 testfile2
2021-12-25 11:05:23 +01:00
Michael Wehr
2fc918bd98 backport the grave accent fix to the 8.32 patch 2021-12-24 20:17:02 +01:00
Michael Wehr
a620f86965 escape grave accents, they break the double quoted system commands 2021-12-24 20:11:32 +01:00
Michael Wehr
04bae585e6 backport changes to 8.32 patch 2021-12-23 19:35:38 +01:00
Michael Wehr
3ac56d553f show global progressbar when moving files in copy mode (between devices) 2021-12-23 19:21:33 +01:00
Michael Wehr
e529e310ea fix casing of output, to better match unmodded messages 2021-12-23 18:55:23 +01:00
Michael Wehr
a1cc785674 add more comments to identify all progress mod changes 2021-12-23 12:00:26 +01:00
Michael Wehr
aa4d645a11 move comment to enclose progess struct 2021-12-23 09:07:53 +01:00
Michael Wehr
24ad5c292c when moving display one good-bye message and show what was moved 2021-12-22 23:43:26 +01:00
Michael Wehr
edec49ec6f escape double quotes, so system commands don't break anymore 2021-12-22 21:16:20 +01:00
Michael Wehr
7e2df2e0b7 harmonize string handling, so only double quotes break system commands 2021-12-22 14:19:51 +01:00
Michael Wehr
c9d7d6779f change comment positioning 2021-12-22 14:09:12 +01:00
Michael Wehr
3b2fdc6f42 fix comment casing 2021-12-22 13:57:59 +01:00
Michael Wehr
d337f35f5b fix whitespace 2021-12-22 13:48:56 +01:00
Michael Wehr
9d614d1883 fix compiler warning for 0.9 patch 2021-12-22 11:57:51 +01:00
Arun Prakash Jana
47dbf85998 Add image, update text on reflink. 2021-11-14 18:42:11 +05:30
Arun
4144872297 Merge pull request #11 from whalehub/patch-1
Fix compiler warnings
2021-11-12 14:47:29 +05:30
Aaron
3ef18c8f20 Fix compiler warnings
Signed-off-by: Aaron <admin@datahoarder.dev>
2021-11-12 09:53:29 +01:00
Arun
35d117d60b Merge pull request #10 from Zackptg5/master
old bug fix, add readme note
2021-11-12 08:26:45 +05:30
Zackptg5
39c571c505 old bug fix, add readme note 2021-11-11 21:55:13 -05:00
Arun
8e1c0d4f8a Merge pull request #9 from Zackptg5/master
Add 9.0 patch
2021-11-10 13:10:54 +00:00
Zackptg5
fd0fc50b1a Add 9.0 patch
Doesn't work with reflink, disable if using  progress-bar
2021-11-09 12:42:26 -05:00
Arun
e81fa04c0a Merge pull request #8 from jarun/revert-7-master
Revert "Add 9.0 patch"
2021-11-06 07:05:33 +05:30
Arun
7948d430cb Revert "Add 9.0 patch" 2021-11-06 07:04:44 +05:30
Terminator X
1bd0b73b80 Merge pull request #7 from Zackptg5/master
Add 9.0 patch
2021-10-29 04:01:33 +05:30
Zackptg5
d1c5b22cf0 Add 9.0 patch 2021-10-28 15:16:31 -04:00
Terminator X
89dc1cf8d4 Merge pull request #5 from SlrG/fixwarning
fix compiler warning
2021-08-11 23:54:18 +05:30
Michael Wehr
238aca4f4b fix compiler warning 2021-08-11 20:00:51 +02:00
Arun Prakash Jana
72e4a22d85 Fix broken overwrite prompt 2021-05-19 20:06:41 +05:30
Arun Prakash Jana
fa08fed46e Fix reducing bar length crashes on smaller screens
The "Copying at..." string can be > reduced length
2020-12-06 22:38:17 +05:30
Arun Prakash Jana
a7d942a2ef Zero out -ve transfer speed shown at start 2020-10-26 19:33:54 +05:30
Arun Prakash Jana
d336dd4cbe Indicate copy/move op correctly in progress msg 2020-10-25 13:06:02 +05:30
Mischievous Meerkat
b955f0eb67 Merge pull request #3 from jansturm92/master
Add patch for coreutils v8.32
2020-05-23 21:03:57 +05:30
Jan Sturm
05f1e041e3 Add patch for coreutils v8.32 2020-05-23 16:43:05 +02:00
Mischievous Meerkat
fc6f1c2e79 Merge pull request #2 from jansturm92/master
porting to GCC 10
2020-05-22 20:56:26 +05:30
Jan Sturm
aa22226c68 porting to GCC 10 2020-05-22 16:16:07 +02:00
Arun Prakash Jana
2d37565bd8 Update docs 2019-10-12 22:12:29 +05:30