From: David Dykstra Date: Mon, 26 Nov 2001 19:15:53 +0000 (+0000) Subject: Better fix for case of excluded symlinks that point nowhere when using X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/76e26e10423f1b3fbd9d11b456aa06bdf8489967?hp=76e26e10423f1b3fbd9d11b456aa06bdf8489967 Better fix for case of excluded symlinks that point nowhere when using --copy-links. The readlink_stat() does need to be done in the normal case before checking the exclude patterns because it needs to know whether or not a file is a directory in order to properly handle a trailing slash in an exclude pattern. This fix makes make_file() go ahead and call readlink_stat() but then if the latter returns an ENOENT and copy_links is on then it will only print an error if the path is not excluded. ---