~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to tagmanager/tm_file_entry.c

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (9 hardy)
  • mto: (3.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifdef HAVE_FNMATCH_H
23
23
# include <fnmatch.h>
24
24
#endif
 
25
#include <glib/gstdio.h>
25
26
 
26
27
#include "tm_work_object.h"
27
28
#include "tm_file_entry.h"
62
63
        struct stat s;
63
64
 
64
65
#ifndef G_OS_WIN32
65
 
        if (0 != lstat(path, &s))
 
66
        if (0 != g_lstat(path, &s))
66
67
                return tm_file_unknown_t;
67
68
#endif
68
69
        if S_ISDIR(s.st_mode)
163
164
                                return NULL;
164
165
                        }
165
166
                        g_snprintf(file_name, PATH_MAX, "%s/CVS/Entries", entry->path);
166
 
                        if (0 == stat(file_name, &s))
 
167
                        if (0 == g_stat(file_name, &s))
167
168
                        {
168
169
                                if (S_ISREG(s.st_mode))
169
170
                                {