Wrap file I/O to claws_* to benefit from custom locking when
[claws.git] / src / exportldif.c
index ded6a3e5dcb75d50fc27fced399531ab69812e5f..54e6bd02efa6155d6cb8c36a6ffd6d2254b4240c 100644 (file)
@@ -533,7 +533,7 @@ void exportldif_process( ExportLdifCtl *ctl, AddressCache *cache )
        ItemFolder *rootFolder;
        FILE *ldifFile;
 
-       ldifFile = g_fopen( ctl->path, "wb" );
+       ldifFile = claws_fopen( ctl->path, "wb" );
        if( ! ldifFile ) {
                /* Cannot open file */
                ctl->retVal = MGU_OPEN_FILE;
@@ -542,7 +542,7 @@ void exportldif_process( ExportLdifCtl *ctl, AddressCache *cache )
 
        rootFolder = cache->rootFolder;
        exportldif_fmt_folder( ctl, ldifFile, rootFolder );
-       safe_fclose( ldifFile );
+       claws_safe_fclose( ldifFile );
        ctl->retVal = MGU_SUCCESS;
 }