I would like unzip to be able to leave the file date/time as the current date/time when expanding an archive, in the same way that tar -m does under linux. This is useful for me when unzipping files into /tmp in order to begin executing a computation. Without this -m flag, the system "cleans" up my important files from /tmp because I made the .zip file in question ages ago and so the files end up with very old timestamps. Just extracting the .zip file and then altering the timestamps is no good, because it exposes a race condition: who knows which of my important files will have been deleted before I can reset their atime / mtime?
This patch aginst unzip 5.52 accomplishes this.
Please would you incorporate this feature into the next release of unzip.
My patch is released into the public domain.
Log in to post a comment.