If f_name_cmp() discovers that two directory strings compare to an
authorWayne Davison <wayned@samba.org>
Mon, 14 Feb 2005 01:29:17 +0000 (01:29 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 14 Feb 2005 01:29:17 +0000 (01:29 +0000)
commitbf0c5bec455f6a3a51f638413969e5ffb57eed10
tree4653556ca0e12ae425bbd0e7188928e7ee87dd4a
parent0dd046d36f41bbabba9261152c9891bc78fcabac
If f_name_cmp() discovers that two directory strings compare to an
equal value without being equal pointers, substitute one of the
pointers for the other in the file list.  This optimizes future name
comparisons.  Note also that this optimization won't be triggered
very often (because rsync tends to send the names grouped by dir-
name at transmission time), but it's nice to be able to assume that
all files in the same dir have identical dir-name pointers after the
qsort is finished.
flist.c