Support /var/run being a symlink in upload
authorThomas Thrainer <thomasth@google.com>
Mon, 6 May 2013 13:10:00 +0000 (15:10 +0200)
committerThomas Thrainer <thomasth@google.com>
Tue, 7 May 2013 07:30:12 +0000 (09:30 +0200)
commit6390194be92cddcf2ade350b29e652e9f464470d
tree05bb2805f2494526e993ae86852579a562a7f8fb
parente41bf003ff41070af002727a2b804b5409db9679
Support /var/run being a symlink in upload

Starting from Debian Wheezy, /var/run is a symlink to /run. If rsync
does not treat receiving symlinks to directories as directories, it
would remove the original symlink and create a new, empty directory
where only the files to sync are put in. In the case of /var/run, this
behavior severly impacts the running system (as, for example, several
PID can't be found anymore).

This is a cherry-pick of commit 412e738.

Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
devel/upload