projects
/
gnome.seed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a5ad68
)
Use realpath() instead of the GNU libc extension canonicalize_file_path
author
Tim Horton
<hortont424@gmail.com>
Wed, 30 Dec 2009 07:54:29 +0000
(
02:54
-0500)
committer
Tim Horton
<hortont424@gmail.com>
Wed, 30 Dec 2009 07:54:29 +0000
(
02:54
-0500)
libseed/seed-importer.c
patch
|
blob
|
history
diff --git
a/libseed/seed-importer.c
b/libseed/seed-importer.c
index
f205df1
..
792aaed
100644
(file)
--- 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);