If link exists, remove it before creating again
This commit is contained in:
parent
ac30527220
commit
59148bf023
@ -339,6 +339,7 @@ int AddFile(struct FILE_record f_db, int Area, char *DestPath, char *FromPath, c
|
||||
}
|
||||
chmod(DestPath, 0644);
|
||||
if (LinkPath) {
|
||||
unlink(LinkPath);
|
||||
if ((rc = symlink(DestPath, LinkPath))) {
|
||||
WriteError("Can't create symbolic link %s", LinkPath);
|
||||
if (!do_quiet)
|
||||
|
Reference in New Issue
Block a user