Fix 'Save As' so it can write to non-existing files.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8784 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/cashutil
David Hampton 23 years ago
parent 0f8fe2f2b4
commit 397fe76818

@ -118,8 +118,8 @@ file_session_begin(QofBackend *be_start, QofSession *session, const char *book_i
return;
}
rc = stat (be->fullpath, &statbuf);
if (rc != 0 || S_ISDIR(statbuf.st_mode))
{
if (rc == 0 && S_ISDIR(statbuf.st_mode))
{
qof_backend_set_error (be_start, ERR_FILEIO_UNKNOWN_FILE_TYPE);
g_free (be->fullpath); be->fullpath = NULL;
g_free (be->dirname); be->dirname = NULL;

Loading…
Cancel
Save