Skip to main content
10 events
when toggle format what by license comment
Mar 12, 2020 at 18:22 vote accept Cris
Mar 12, 2020 at 18:21 vote accept Cris
Mar 12, 2020 at 18:21
Mar 9, 2020 at 10:05 comment added Cris Nice one. In our case the tar we have to extract are safe on that point of view but it is a valid point and nice update. Just as info I tried both tar with xargs and star the first seems more performant
Mar 9, 2020 at 9:42 comment added Stéphane Chazelas I've added the (GNU-specific) -d '\n' so it doesn't fail with archive members that contain whitespace or quoting characters, but newline characters are still a problem.
Mar 9, 2020 at 9:41 comment added Stéphane Chazelas It's also a bit dangerous in that chmod follows symlinks. So if a user is tricked into unpacking an archive that contains a symlink to ~/.profile for instance, that would have bad consequences.
Mar 9, 2020 at 9:40 comment added Stéphane Chazelas Also not that it gives execute permissions to non-directory files.
Mar 9, 2020 at 9:39 history edited Stéphane Chazelas CC BY-SA 4.0
added 27 characters in body
Mar 9, 2020 at 7:52 history edited Cris CC BY-SA 4.0
changed the tar options as the script works just for extraction with specific options
Mar 9, 2020 at 7:39 history edited Cris CC BY-SA 4.0
deleted 60 characters in body
Mar 9, 2020 at 7:16 history answered Cris CC BY-SA 4.0