title: Rsync on Windows: wrong permissions for created directories
body: <p>I'm trying to push changes to my server through ssh on windows (cygwin) using <code>rsync</code>.
  The command I am using is:</p>
  
  <blockquote>
    <p>rsync -rvz -e ssh /cygdrive/c/myfolder/ rsyncuser@192.168.1.110:/srv/www/prj112/myfolder/</p>
  </blockquote>
  
  <p><code>/srv/www/prj112/myfolder/</code> is owned by <code>rsyncuser</code>. My problem is that eventhough with <code>rsync</code> the sub directories are create as they publish, each directory is assigned default permission of <code>d---------</code> so <code>rsync</code> fails to copy any files inside it.</p>
  
  <p>How do I fix this?</p>