NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: bin/37944: [patch]: gzip cannot preserve utimes() because it first sets chflags()



    
   >How-To-Repeat:
   $ /usr/bin/touch /tmp/foo
   $ /bin/chflags uchg /tmp/foo
   $ /usr/bin/gzip -v /tmp/foo
   gzip: couldn't utimes: /tmp/foo.gz: Operation not permitted
   /tmp/foo: -99.9% -- replaced with /tmp/foo.gz
   >Fix:
   I sent a simple patch to FreeBSD, making it run utimes() / chflags()
   http://www.freebsd.org/cgi/query-pr.cgi?pr=120208
   
   Note that src/usr.bin/compress/compress.c does the right thing...


interesting.... won't this have the problem of setting the
file mod time to "now"?  i'm not sure how to avoid that,
and also fix this bug... 

ideas anyone?


.mrg.



Home | Main Index | Thread Index | Old Index