From: Wayne Davison Date: Tue, 5 Apr 2011 20:35:13 +0000 (-0700) Subject: Add some temp-name dot heuristics for OS X's sake. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b223d96bf0d040cfa445a45213fc517ab8389785?hp=b223d96bf0d040cfa445a45213fc517ab8389785 Add some temp-name dot heuristics for OS X's sake. - Drop one leading '.' from the filename (before adding our own). - Drop one trailing '.' from a (possibly truncated) name prior to the .XXXXXX suffix being added. - Allow the temp-name to collapse to just the .XXXXXX suffix if the path is long enough to require that. Note that we don't try to remove multiple dots from a filename that actually has multiple consecutive dots, since we might as well learn early if the final name is going to fail or not. ---