#5 Add support for a -m option which disables time stamps

open
nobody
None
5
2007-06-08
2007-06-08
No

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.

Discussion

  • Ed Gordon

    Ed Gordon - 2007-06-30

    Logged In: YES
    user_id=1172496
    Originator: NO

    We've not been monitoring postings to SourceForge lately. Sorry about that. The UnZip maintainer may not have seen this. Can you repost this using the Info-ZIP web posting page referenced off of the FAQ http://www.info-zip.org/FAQ.html. Once the latest betas are posted we'll try to monitor SourceForge more. If the UnZip maintainer is interested in the patch, you can reference this page, but you'll have to sell the feature first.

     
  • Ed Gordon

    Ed Gordon - 2007-10-07

    Logged In: YES
    user_id=1172496
    Originator: NO

    OK, see the point of avoiding the race condition, so ignore my posting in another area. I'm passing this patch on, but no guarantee it will get used.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks