GNOME Bugzilla – Bug 548891
QIF Import: GnuCash crashes when .gnucash/qif-accounts-map is readonly
Last modified: 2018-06-29 22:09:07 UTC
Steps to reproduce: 1. make /home/whoever/.gnucash/qif-accounts-map readonly 2. Import QIF file and follow druid 3. GNUCash crashes on clicking Apply Stack trace: Running with --debug option gives: ********************* Backtrace: In unknown file: ?: 0* [qif-import:save-map-prefs #(() # # ...) #(# # # ...) ...] In /usr/share/gnucash/scm/qif-import/qif-guess-map.scm: 272: 1* (let (#) (with-output-to-file pref-filename #)) 276: 2 [with-output-to-file "/home/karl/.gnucash/qif-accounts-map" ...] In unknown file: ?: 3 (let* ((nport #) (ans #)) (close-port nport) ans) ?: 4* [open-output-file "/home/karl/.gnucash/qif-accounts-map"] ?: 5 [#<procedure #f #> "/home/karl/.gnucash/qif-accounts-map" "w"] ?: 6 [open-file "/home/karl/.gnucash/qif-accounts-map" "w"] <unnamed port>: In procedure open-file in expression (guile-core-open-file filename (if # # ...)): <unnamed port>: Permission denied: "/home/karl/.gnucash/qif-accounts-map" ******** end of back trace ********** Other information:
Fix committed as r17477. Requesting backport for 2.2.
Applied to branches/2.2 as r17542 for inclusion in 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=548891. Please update any external references or bookmarks.