camdez/whiteout — pull request #6 by Abizern (2012-05-12 06:09:39+00:00)
Title: Sets the file permissions correctly after rewriting the file

I noticed that the file permissions were changing from -rw-r--r-- to -rw------- after running the script.

I've hardcoded the value in.

It would probably be better to read the permissions of the original file and use this to reset the permissions after the processing.