Conversation
mholt
left a comment
There was a problem hiding this comment.
Do you think instead of hard-coding root, would it make more sense to let the user choose the Uid/Uname/Gid/Gname?
I don't think that it make more sense. original mode can be retrieved by fileInfo, so it's always possible to use a chown logic before tar creation. I would consider root a notable case, particularly towards fakeroot functionality. |
I've done some edits to add customization |
mholt
left a comment
There was a problem hiding this comment.
Thanks! Sorry I didn't reply sooner. I do think this approach is probably better overall, since it's more flexible, but I also don't know much about the use cases for these properties. I appreciate it though. This works for you alright?
It perfectly works. |
mholt
left a comment
There was a problem hiding this comment.
Thought I had merged this already 🙈 Thank you!
As the title suggests, hereby I add a Fakeroot flag in order to set Uid, Gid, Uname and Gname to
root. This is very useful to mimic fakeroot behaviour. In my use case, I need something like this to avoid the usage of any fakeroot facility, just before archival operations. I'm using these edits for days and everything seems to work just fine.