From 59148bf0236b5565372297f2e92121da2eb98a3c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 8 May 2005 17:52:09 +0000 Subject: [PATCH] If link exists, remove it before creating again --- mbfido/mbfutil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mbfido/mbfutil.c b/mbfido/mbfutil.c index 50ab0a9b..9e1507f1 100644 --- a/mbfido/mbfutil.c +++ b/mbfido/mbfutil.c @@ -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)