[seed] Use realpath() instead of the GNU libc extension canonicalize_file_path
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seed] Use realpath() instead of the GNU libc extension canonicalize_file_path
- Date: Wed, 30 Dec 2009 08:13:44 +0000 (UTC)
commit 48eabb14b1fafe329156a9dbba144586ec850454
Author: Tim Horton <hortont424 gmail com>
Date: Wed Dec 30 02:54:29 2009 -0500
Use realpath() instead of the GNU libc extension canonicalize_file_path
libseed/seed-importer.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/libseed/seed-importer.c b/libseed/seed-importer.c
index f205df1..792aaed 100644
--- a/libseed/seed-importer.c
+++ b/libseed/seed-importer.c
@@ -17,9 +17,6 @@
* Copyright (C) Robert Carr 2009 <carrr rpi edu>
*/
-// TODO: Don't use GNU libc extension canonicalize_file_name, don't use realpath?
-#define _GNU_SOURCE
-
#include <gio/gio.h>
#include <string.h>
@@ -694,7 +691,7 @@ seed_importer_handle_file (JSContextRef ctx,
g_path_get_dirname (file_path), NULL);
}
- normalized_path = canonicalize_file_name (absolute_path);
+ normalized_path = realpath (absolute_path, NULL);
js_file_dirname = seed_value_from_string (ctx, normalized_path, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]