file: write through symlinks on uci commit
authorJo-Philipp Wich <jo@mein.io>
Thu, 31 Mar 2016 00:06:12 +0000 (02:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 31 Mar 2016 00:06:14 +0000 (02:06 +0200)
commitec96e1f93d6d0faa3f3c40f6bcbc0006550281a8
treed14b971e81f71da2e6321abebaffd7162a1c09f6
parent18c13247f9e0bfad1effc0445bcda436d03789c5
file: write through symlinks on uci commit

The rename() syscall operates on the destination path directly, therfore
resolve the real path before doing the rename to not clobber the destination
in case it is a symlink pointing to another file.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
file.c