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

« 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
  • mto: (1.4.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 70.
  • Revision ID: james.westby@ubuntu.com-20090215130043-6snh45flhit8oalb
Tags: upstream-2.18.4
ImportĀ upstreamĀ versionĀ 2.18.4

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);