#38 Option -preserve does not preserve file owner

pending
Cosmin Truta
None
5
2014-05-28
2013-10-28
No

I am running in a root-owned cron script the following line nightly:
find /var/www/ -mtime -2 -iname '*.png' -print0 | \ xargs -0 optipng -o7 -log /root/optipng.log -preserve

This is otherwise great, but it seems that user-owned files become root-owned if optipng optimizes a image.

Option -preserve should prevent this, but does not seem to work like that in my case, am I missing something?

I'm running version 0.6.4.

Discussion

  • Cosmin Truta
    Cosmin Truta
    2013-11-04

    Ticket moved from /p/optipng/bugs/41/

     
  • Cosmin Truta
    Cosmin Truta
    2013-11-04

    • assigned_to: Cosmin Truta
    • Group: v1.0 (example) --> Next Release (example)
     
  • Cosmin Truta
    Cosmin Truta
    2013-11-04

    Moving ticket to feature requests. Preservation of the file UID and GID is not yet implemented.

     
  • Cosmin Truta
    Cosmin Truta
    2014-03-24

    Implemented in version 0.7.5.

     
  • Cosmin Truta
    Cosmin Truta
    2014-03-24

    • status: open --> pending