diff src/doveadm/dsync/dsync-ibc-stream.c @ 19136:fefaa6d09a81

Replaced unlink() calls with i_unlink*() wherever possible.
author Timo Sirainen <tss@iki.fi>
date Tue, 08 Sep 2015 19:07:02 +0300
parents 3abdcbde7f39
children 9e120590e0ef
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-ibc-stream.c	Tue Sep 08 18:49:00 2015 +0300
+++ b/src/doveadm/dsync/dsync-ibc-stream.c	Tue Sep 08 19:07:02 2015 +0300
@@ -467,9 +467,8 @@
 	}
 
 	/* we just want the fd, unlink it */
-	if (unlink(str_c(path)) < 0) {
+	if (i_unlink(str_c(path)) < 0) {
 		/* shouldn't happen.. */
-		i_error("unlink(%s) failed: %m", str_c(path));
 		i_close_fd(&fd);
 		return -1;
 	}