Bug#4134 - Unable to create folders using FTP on a CIFS mounted share: "...

...No such

file or directory".

The underlying cause of this bug is that, on a CIFS mount (perhaps because
of the mount options used), fchmod(2) on the temporary directory returns
ENOENT.  Weird.  So we address this by doing a) a fallback call to chmod(2)
on the path, and b) ignoring ENOENT.