Better fix for case of excluded symlinks that point nowhere when using
authorDavid Dykstra <dwd@samba.org>
Mon, 26 Nov 2001 19:15:53 +0000 (19:15 +0000)
committerDavid Dykstra <dwd@samba.org>
Mon, 26 Nov 2001 19:15:53 +0000 (19:15 +0000)
commit76e26e10423f1b3fbd9d11b456aa06bdf8489967
tree237757d02bd674444c5401dac72a807e1c321ed4
parent9069dfd00513f169b497e88c3edd21833315aca7
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.
flist.c