Skip to contentSkip to conversation

LVM2/lib/format_text archiver.c

PATCH [email protected] 1 participant 1 message Jan 5, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-01-05 15:06:10

Modified files:
lib/format_text: archiver.c

Log message:
Add sys_debug loging for unlink

This unlink intentionally silently ignores any errors. It's still worth to trace its error status in debug mode.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/archiver.c.diff?cvsroot=lvm2&r1=1.36&r2=1.37

lib/format_text/archiver.c +3 -1
@@ -261,7 +261,9 @@
 	/*
 	 * Let this fail silently.
 	 */
-	unlink(path);
+	if (unlink(path))
+		log_sys_debug("unlink", path);
+
 	return 1;
 }