r15873 - gnucash/trunk/src/backend/file - Use ERR_BACKEND_READONLY if data file cannot be unlinked on write.

Andreas Köhler andi5 at cvs.gnucash.org
Wed Apr 11 11:34:20 EDT 2007


Author: andi5
Date: 2007-04-11 11:34:19 -0400 (Wed, 11 Apr 2007)
New Revision: 15873
Trac: http://svn.gnucash.org/trac/changeset/15873

Modified:
   gnucash/trunk/src/backend/file/gnc-backend-file.c
Log:
Use ERR_BACKEND_READONLY if data file cannot be unlinked on write.

On Windows, we need write access to the data file to remove it before
replacing it by the already written out temp file.  We should not just
chmod the data file, but tell the user that it may be read-only.
ERR_FILEIO_BACKUP_ERROR was misleading because the backup actually
worked.




More information about the gnucash-patches mailing list