GNOME Bugzilla – Bug 552306
Fails to save file when using a network filesystem on Mac
Last modified: 2018-06-29 22:10:11 UTC
Please describe the problem: The issue is similar to bug 549595 but the patch in that bug does not help. What's happening is that link() is returning ENOTSUP when used on a drive shared via a wireless router. The code is only checking for EOPNOTSUPP. The two error codes are always equal on Linux, but they're different on Mac if compiling in the "follow Unix standards" mode, which apparently MacPorts does when compiling gnucash. Steps to reproduce: 1. Set up an Airport Extreme base station sharing out an HFS+ disk 2. Put the Gnucash data file on this disk 3. Start Gnucash 4. When prompted about being unable to acquire the lock, tell it to go ahead anyway. 5. Try to save the file. Actual results: If the patch from bug 549595 is not applied, the file is silently deleted. If it is, an error alert pops up saying that the file could not be backed up, and after that's dismissed a dialog appears prompting for a different place to save. Expected results: I would expect my data to be saved. Does this happen every time? Yes. Other information:
Created attachment 118724 [details] [review] This patch fixes the issue for me
I also filed this bug on macports, in case they want to backport this fix before they update gnucash versions, at http://trac.macports.org/ticket/16545
Fixed by r17524 no trunk and r17550 on branches/2.2 for GnuCash 2.2.7. Thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=552306. Please update any external references or bookmarks.