Let people force overwrite links

-Erik
This commit is contained in:
Eric Andersen 2002-09-16 10:23:38 +00:00
parent 403a73a351
commit 02b8dfc524

View File

@ -47,7 +47,7 @@ int copy_file(const char *source, const char *dest, int flags)
return -1;
}
if (stat(dest, &dest_stat) < 0) {
if (lstat(dest, &dest_stat) < 0) {
if (errno != ENOENT) {
perror_msg("unable to stat `%s'", dest);
return -1;