This patch makes sure file time stamp and file permissions are preserved.
The patch is attached and is also at http://github.com/lflaks/cobbler/
Leonid,
You're using cp's -a flag here which does a lot more than just preserving the mode and timestamps. For example, -a changes the behavior of cp with regard to symlinks.
How would you feel about using -p instead which preserves the mode, ownership, and timestamps? ------------ Regards, Alex