summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/hotlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index 7e14143ca..8f76c62a3 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -936,6 +936,9 @@ static nserror hotlist_save(const char *path)
goto cleanup;
}
+ /* Remove old hotlist to handle non-POSIX rename() implementations. */
+ (void)remove(path);
+
/* Replace any old hotlist file with the one we just saved */
if (rename(temp_path, path) != 0) {
res = NSERROR_SAVE_FAILED;