summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Sampson <ats-gnomebugs@offog.org>2009-09-28 13:45:23 -0400
committerColin Walters <walters@verbum.org>2009-09-28 13:45:23 -0400
commit5013e23d5405db533133a4b158d9dfa0ea95fbe4 (patch)
treea5778c69077e73b95195b516de5d0a26217c1dc7
parent2a92ae1012c16f0dc7e5bd9470925a9d305029be (diff)
downloadgobject-introspection-5013e23d5405db533133a4b158d9dfa0ea95fbe4.tar.gz
Consistently resolve symbolic links
When building the list of valid filenames for the scanner, resolve symlinks in the filenames; the lexer does this when including files, so otherwise we'll get filename mismatches if the path to the files being scanned includes a symlink. Signed-off-by: Colin Walters <walters@verbum.org>
-rw-r--r--giscanner/giscannermodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 80d7f6b9..e8ad117a 100644
--- a/giscanner/giscannermodule.c
+++ b/giscanner/giscannermodule.c
@@ -23,6 +23,7 @@
# include "config.h"
#endif
#include "sourcescanner.h"
+#include "grealpath.h"
#include <Python.h>
#ifdef _WIN32
@@ -335,7 +336,7 @@ pygi_source_scanner_append_filename (PyGISourceScanner *self,
return NULL;
self->scanner->filenames = g_list_append (self->scanner->filenames,
- g_strdup (filename));
+ g_realpath (filename));
Py_INCREF (Py_None);
return Py_None;