~ubuntu-branches/ubuntu/jaunty/gvfs/jaunty-updates

« back to all changes in this revision

Viewing changes to programs/gvfs-open.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-03-10 13:02:47 UTC
  • mfrom: (1.1.38 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310130247-eal98y6fbs81pkpg
Tags: 1.1.8-0ubuntu1
* New upstream version:
  - Fix crashers and leaks (lp: #201519)
  - Handle file:// uris with anchors in gvfs-open
  - fuse: Support ftruncate to the current file size (lp: #234532)
  - escape/unescape hostname part in uris, allowing spaces in e.g. smb domains
  - hal: Fix "No mount object" error on mount
  - Change details of the new .xdg-volume-info file format
  - Fix races in cancellation of gvfs streams
  - Remove debug spew from backends
  - ftp: Fix anonymous login (lp: #334540)
  - gphoto2: Ignore broken storages with no capacity (lp: #326029)
  - Don't globally modify COMP_WORDBREAKS in bash completion script
    (lp: #290784)
  - Don't ask for username when getting ssh key passphrase
* debian/patches/91_upstream_change_fix_trash_crasher.patch:
  - the change is in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  {NULL}
39
39
};
40
40
 
 
41
static gboolean
 
42
is_file_uri_with_anchor (char *str)
 
43
{
 
44
  if (g_ascii_strncasecmp (str, "file:", 5) == 0 &&
 
45
      strchr (str, '#') != NULL)
 
46
    return TRUE;
 
47
  return FALSE;
 
48
}
 
49
 
41
50
static void
42
51
open (GFile *file, char *arg_string)
43
52
{
59
68
      return;
60
69
    }
61
70
 
62
 
  if (g_file_is_native (file))
 
71
  if (g_file_is_native (file) && !is_file_uri_with_anchor (arg_string))
63
72
    {
64
73
      /* For normal files, pass in the canonicalized GFile as path */
65
74
      l.data = file;