title: rsync prints "skipping non-regular file" for what appears to be a regular directory
body: <p>I back up my files using rsync. Right after a sync, I ran it expecting to see nothing, but instead it looked like it was skipping directories. I've (obviously) changed names, but I believe I've still captured all the information I could. What's happening here?</p>
  
  <pre><code>$ ls -l /source/backup/myfiles
  drwxr-xr-x 2 me me  4096 2010-10-03 14:00 foo
  drwxr-xr-x 2 me me  4096 2011-08-03 23:49 bar
  drwxr-xr-x 2 me me  4096 2011-08-18 18:58 baz
  
  $ ls -l /destination/backup/myfiles
  drwxr-xr-x 2 me me  4096 2010-10-03 14:00 foo
  drwxr-xr-x 2 me me  4096 2011-08-03 23:49 bar
  drwxr-xr-x 2 me me  4096 2011-08-18 18:58 baz
  
  $ file /source/backup/myfiles/foo
  /source/backup/myfiles/foo/: directory
  </code></pre>
  
  <p></p>
  
  <p>Then I sync (expecting no changes):</p>
  
  <pre><code>$ rsync -rtvp /source/backup /destination
  sending incremental file list
  backup/myfiles
  skipping non-regular file "backup/myfiles/foo"
  skipping non-regular file "backup/myfiles/bar"
  </code></pre>
  
  <p>And here's the weird part:</p>
  
  <pre><code>$ echo 'hi' &gt; /source/backup/myfiles/foo/test
  $ rsync -rtvp /source/backup /destination
  sending incremental file list
  backup/myfiles
  backup/myfiles/foo
  backup/myfiles/foo/test
  skipping non-regular file "backup/myfiles/foo"
  skipping non-regular file "backup/myfiles/bar"
  </code></pre>
  
  <p>So it worked:</p>
  
  <pre><code>$ ls -l /source/backup/myfiles/foo
  -rw-r--r-- 1 me me  3126091 2010-06-15 22:22 IMGP1856.JPG
  -rw-r--r-- 1 me me  3473038 2010-06-15 22:30 P1010615.JPG
  -rw-r--r-- 1 me me        3 2011-08-24 13:53 test
  
  $ ls -l /destination/backup/myfiles/foo
  -rw-r--r-- 1 me me  3126091 2010-06-15 22:22 IMGP1856.JPG
  -rw-r--r-- 1 me me  3473038 2010-06-15 22:30 P1010615.JPG
  -rw-r--r-- 1 me me        3 2011-08-24 13:53 test
  </code></pre>
  
  <p>but still:</p>
  
  <pre><code>$ rsync -rtvp /source/backup /destination
  sending incremental file list
  backup/myfiles
  skipping non-regular file "backup/myfiles/foo"
  skipping non-regular file "backup/myfiles/bar"
  </code></pre>
  
  <p>Other notes:</p>
  
  <p>My actual directories "foo" and "bar" do have spaces, but no other strange characters. Other directories have spaces and have no problem. I 'stat'-ed and saw no differences between the directories that don't rsync and the ones that do.</p>
  
  <p>If you need more information, just ask.</p>