After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552306 - Fails to save file when using a network filesystem on Mac
Fails to save file when using a network filesystem on Mac
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Backend - XML
2.2.x
Other All
: Normal critical
: ---
Assigned To: Andreas Köhler
Andreas Köhler
Depends on: 549595
Blocks:
 
 
Reported: 2008-09-15 03:13 UTC by Boris Zbarsky
Modified: 2018-06-29 22:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch fixes the issue for me (1.12 KB, patch)
2008-09-15 03:17 UTC, Boris Zbarsky
committed Details | Review

Description Boris Zbarsky 2008-09-15 03:13:34 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:
Comment 1 Boris Zbarsky 2008-09-15 03:17:50 UTC
Created attachment 118724 [details] [review]
This patch fixes the issue for me
Comment 2 Boris Zbarsky 2008-09-15 03:19:32 UTC
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
Comment 3 Andreas Köhler 2008-09-17 17:51:08 UTC
Fixed by r17524 no trunk and r17550 on branches/2.2 for GnuCash 2.2.7.
Thanks a lot!
Comment 4 John Ralls 2018-06-29 22:10:11 UTC
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.