]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: Added i_unlink() and i_unlink_if_exists()
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Sep 2015 15:49:00 +0000 (18:49 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Sep 2015 15:49:00 +0000 (18:49 +0300)
commit8dc04cf60ea2f2d176ce4e5ca36c050e4c0a858b
tree488fe427816f979eac5d64e1290fb33435e6d881
parentb1415399592c7d46a7fa9683986931cbc18b0b53
lib: Added i_unlink() and i_unlink_if_exists()
These log the error message on a failed unlink(). They also include the
source code file and line number to make it easier to find which unlink()
actually failed if the path itself doesn't already clearly identify it.
This can be especially useful if the path is (null), "" or contains some
corrupted garbage.
src/lib/lib.c
src/lib/lib.h