Always use the VFS API for file operations

This commit is contained in:
Pierre Pronchery 2020-02-29 07:49:03 +01:00
parent 0235b7a59f
commit 11e3569823

View File

@ -32,7 +32,6 @@ static char const _license[] =
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdint.h>
@ -3759,7 +3758,7 @@ static void _view_on_filename_edited(GtkCellRendererText * renderer,
fprintf(stderr, "DEBUG: %s() \"%s\"\n", __func__, to);
#endif
/* rename */
if(lstat(to, &st) != 0
if(browser_vfs_lstat(to, &st) != 0
|| browser->prefs.confirm_before_delete != TRUE
|| _browser_confirm(browser, "%s",
_("This will replace an existing file with the"