Ticket #16545: patch-enotsup.diff
File patch-enotsup.diff, 1.1 KB (added by bzbarsky (Boris Zbarsky), 16 years ago) |
---|
-
src/backend/file/gnc-backend-file.c
gnc_file_be_get_file_lock (FileBackend * 143 143 rc = link (be->lockfile, pathbuf); 144 144 if (rc) 145 145 { 146 146 /* If hard links aren't supported, just allow the lock. */ 147 147 if (errno == EPERM 148 148 # ifdef EOPNOTSUPP 149 149 || errno == EOPNOTSUPP 150 150 # endif 151 # ifdef ENOTSUP 152 || errno == ENOTSUP 153 # endif 151 154 ) 152 155 { 153 156 be->linkfile = NULL; 154 157 return TRUE; 155 158 } 156 159 157 160 /* Otherwise, something else is wrong. */ 158 161 qof_backend_set_error ((QofBackend*)be, ERR_BACKEND_LOCKED); … … gnc_int_link_or_make_backup(FileBackend 404 407 ; 405 408 if(err_ret != 0) 406 409 { 407 410 #ifdef HAVE_LINK 408 411 if(errno == EPERM 409 412 # ifdef EOPNOTSUPP 410 413 || errno == EOPNOTSUPP 411 414 # endif 415 # ifdef ENOTSUP 416 || errno == ENOTSUP 417 # endif 412 418 # ifdef ENOSYS // catches http://bugzilla.gnome.org/show_bug.cgi?id=549595 413 419 || errno == ENOSYS 414 420 # endif 415 421 ) 416 422 #endif 417 423 { 418 424 copy_success = copy_file(orig, bkup); 419 425 }