~ubuntu-branches/ubuntu/precise/mutt/precise

« back to all changes in this revision

Viewing changes to browser.c

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg, Adeodato Simó, Christoph Berg
  • Date: 2007-11-03 23:00:04 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071103230004-43e36pnhub87junc
Tags: 1.5.17-1
[ Adeodato Simó ]
* Move the packaging back to Bazaar, adjust X-VCS-* accordingly.

[ Christoph Berg ]
* Mention libsasl2-modules-gssapi-mit in README.Debian. (Closes: #433425)
* Call autoreconf at build time, drop the autotools-update patch.
* Update menu file, add lintian override file.
* Refresh patches.

* New upstream version:
  + fix segfaults with single byte 8-bit characters in index_format.
    (Closes: #420598, Mutt: #2882)
  + properly render subject headers with encoded linefeeds.
    (Closes: #264014, Mutt: #1810)
  + only calls gnutls_error_is_fatal when gnutls_record_recv returns a
    negative value. (Closes: #439775, Mutt: #2954)
  + Large file support for mutt_pretty_size().
    (Closes: #352478, #416555, Mutt: #2191)
  + Do not consider empty pipes for filtering in format strings.
    (Closes: #447340)

Show diffs side-by-side

added added

removed removed

Lines of Context:
989
989
          }
990
990
          else
991
991
#endif
992
 
          if (stat (buf, &st) == 0)
993
992
          {
994
 
            if (S_ISDIR (st.st_mode))
995
 
            {
996
 
              destroy_state (&state);
997
 
              if (examine_directory (menu, &state, buf, prefix) == 0)
998
 
                strfcpy (LastDir, buf, sizeof (LastDir));
999
 
              else
 
993
            if (*buf != '/')
 
994
            {
 
995
              /* in case dir is relative, make it relative to LastDir,
 
996
               * not current working dir */
 
997
              char tmp[_POSIX_PATH_MAX];
 
998
              mutt_concat_path (tmp, LastDir, buf, sizeof (tmp));
 
999
              strfcpy (buf, tmp, sizeof (buf));
 
1000
            }
 
1001
            if (stat (buf, &st) == 0)
 
1002
            {
 
1003
              if (S_ISDIR (st.st_mode))
1000
1004
              {
1001
 
                mutt_error _("Error scanning directory.");
1002
 
                if (examine_directory (menu, &state, LastDir, prefix) == -1)
 
1005
                destroy_state (&state);
 
1006
                if (examine_directory (menu, &state, buf, prefix) == 0)
 
1007
                  strfcpy (LastDir, buf, sizeof (LastDir));
 
1008
                else
1003
1009
                {
1004
 
                  mutt_menuDestroy (&menu);
1005
 
                  goto bail;
 
1010
                  mutt_error _("Error scanning directory.");
 
1011
                  if (examine_directory (menu, &state, LastDir, prefix) == -1)
 
1012
                  {
 
1013
                    mutt_menuDestroy (&menu);
 
1014
                    goto bail;
 
1015
                  }
1006
1016
                }
 
1017
                menu->current = 0;
 
1018
                menu->top = 0;
 
1019
                init_menu (&state, menu, title, sizeof (title), buffy);
1007
1020
              }
1008
 
              menu->current = 0; 
1009
 
              menu->top = 0; 
1010
 
              init_menu (&state, menu, title, sizeof (title), buffy);
 
1021
              else
 
1022
                mutt_error (_("%s is not a directory."), buf);
1011
1023
            }
1012
1024
            else
1013
 
              mutt_error (_("%s is not a directory."), buf);
 
1025
              mutt_perror (buf);
1014
1026
          }
1015
 
          else
1016
 
            mutt_perror (buf);
1017
1027
        }
1018
1028
        MAYBE_REDRAW (menu->redraw);
1019
1029
        break;