Description: fix segfault
 This fixes a crash when using rsyncrypto to refresh an
 encrypted directory tree with --delete enabled.
 This happens because of an infinite recursion in autofd::unlink()
Author: Chris Boot <bootc@debian.org>
Last-Update: 2019-02-09
--- a/autofd.h
+++ b/autofd.h
@@ -216,7 +216,7 @@
     // unless it failed with ENOENT - the file already doesn't exist
     static int unlink(const char *pathname)
     {
-        bool success=unlink( pathname )==0;
+        bool success=::unlink( pathname )==0;
         if( !success && errno!=ENOENT )
             throw rscerror("Erasing file", errno, pathname );
 
