Let people force overwrite links
-Erik
This commit is contained in:
parent
403a73a351
commit
02b8dfc524
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user