Closed EternityForest closed 4 years ago
Yes, seems to be an issue. You might be able to save most of the disk activity if you use mv. But I dont know if mv preserves timestamps mode and ownership. It might. Unlike cp mv just changes the innode so it should not be a big addition as cp is.
I would love a PR if you have the time for that.
This is slightly out of my depth (I haven't used Bash as an actual programming language in a long time) but there seems to be a glob workaround in a stack overflow post
mv -- .[!.] ..?* /dest/
That handles dotfiles semi-correctly without including . and ..
Perhaps three separate commands for normal, dot, and dotdot files?
Dear acts differently with and without trailing slash, I think we want an error if it doesn't exist and not to clobber seat if it's actually a file, so we'd need a way to normalize to one single trailing slash too?
On Thu, Nov 7, 2019, 3:07 AM Guy Sheffer notifications@github.com wrote:
Yes, seems to be an issue. You might be able to save most of the disk activity if you use mv. But I dont know if mv preserves timestamps mode and ownership. It might. Unlike cp mv just changes the innode so it should not be a big addition as cp is.
I would love a PR if you have the time for that.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/guysoft/CustomPiOS/issues/63?email_source=notifications&email_token=AAFZCH57O3LRCQQ4LFIF3H3QSPZF5A5CNFSM4JKDILCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDMBT6Q#issuecomment-551033338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFZCH7S6APPVVHR5P5SS5TQSPZF5ANCNFSM4JKDILCA .
Fixed with #65
When I unpack directly into a folder that has existing content, that content also gets chmoded, and I believe that process may also mess with the setuid bit. Is this intended behavior?
Seems to be the issue.
I am trying this untested workaround, but I do not like it because of the extra disk activity: