~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to gio/glocalvfs.c

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
23
 
#include <config.h>
 
23
#include "config.h"
24
24
#include "glocalvfs.h"
25
25
#include "glocalfile.h"
26
26
#include "giomodule.h"
 
27
#include "gvfs.h"
27
28
#include <gio/gdummyfile.h>
28
29
#include <sys/types.h>
29
30
#ifdef HAVE_PWD_H
114
115
{
115
116
  GFile *file;
116
117
  char *filename;
117
 
  char *user_name;
118
118
  char *user_prefix;
119
119
  const char *user_start, *user_end;
120
120
  char *rest;
121
 
  struct passwd *passwd_file_entry;
122
121
  
123
122
  g_return_val_if_fail (G_IS_VFS (vfs), NULL);
124
123
  g_return_val_if_fail (parse_name != NULL, NULL);
142
141
          else
143
142
            {
144
143
#ifdef HAVE_PWD_H
 
144
              struct passwd *passwd_file_entry;
 
145
              char *user_name;
 
146
 
145
147
              user_name = g_strndup (user_start, user_end - user_start);
146
148
              passwd_file_entry = getpwnam (user_name);
147
149
              g_free (user_name);