~ubuntu-branches/ubuntu/karmic/gedit/karmic

« back to all changes in this revision

Viewing changes to gedit/gedit-local-document-saver.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2009-05-27 14:00:44 UTC
  • mfrom: (1.1.62 upstream)
  • Revision ID: james.westby@ubuntu.com-20090527140044-4h5ypu02i3s4zi0q
Tags: 2.27.1-0ubuntu1
* New upstream release: (LP: #380924)
  - Remove the mmap document loader (Paolo Borelli)
  - Remove open location dialog and sample plugin (Paolo Borelli)
  - Added public API for document saving (Jesse van den Kieboom)
  - Put external tools in a submenu (Jesse van den Kieboom)
  - Added language support for external tools (Jesse van den Kieboom)
  - Implemented asynchronous reading and writing on external tools (Jesse van den Kieboom)
  - Add Quick Open plugin (Jesse van den Kieboom)
  - Misc bugfixes
  - New and updated translations
* debian/patches/90_autoconf.patch
  - updated for new version
* Launchpad bugs fixed:
  - various crasher bugs (LP: #348536, LP: #368262, LP: #368495)
  - fix modeline scanning (LP: #367160)

Show diffs side-by-side

added added

removed removed

Lines of Context:
816
816
        else if (errno == EEXIST)
817
817
        {
818
818
                lsaver->priv->fd = open (lsaver->priv->local_path, O_RDWR);
 
819
 
 
820
                if (lsaver->priv->fd == -1 && errno == ENOTSUP)
 
821
                {
 
822
                        /* Open for RDWR failed because it is not supported, open for write
 
823
                         * only. This will disable creating backups in the fallback
 
824
                         * strategy, but at least we can write the new file */
 
825
                        lsaver->priv->fd = open (lsaver->priv->local_path, O_WRONLY);
 
826
                }
 
827
 
819
828
                if (lsaver->priv->fd != -1)
820
829
                {
821
830
                        next_phase = (GSourceFunc) save_existing_local_file;