mirror of
https://github.com/troglobit/libite.git
synced 2026-11-17 19:30:17 +00:00
copyfile() passes the source mode to open(2), which applies the umask, so a 0644 file copied with umask 0027 ends up 0640. Apply the source mode with fchmod() after creating the destination. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>