projects
/
gnome.seed
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53a1447
)
Use realpath() instead of the GNU libc extension canonicalize_file_path (again)
author
Tim Horton
<hortont424@gmail.com>
Thu, 31 Dec 2009 10:40:29 +0000
(
05:40
-0500)
committer
Tim Horton
<hortont424@gmail.com>
Thu, 31 Dec 2009 10:40:29 +0000
(
05:40
-0500)
modules/os/seed-os.c
patch
|
blob
|
history
diff --git
a/modules/os/seed-os.c
b/modules/os/seed-os.c
index
1b08374
..
ad2dfc1
100644
(file)
--- a/
modules/os/seed-os.c
+++ b/
modules/os/seed-os.c
@@
-17,8
+17,6
@@
* Copyright (C) Robert Carr 2009 <carrr@rpi.edu>
*/
-#define _GNU_SOURCE
-
#include "../../config.h"
#include <unistd.h>
@@
-62,7
+60,7
@@
seed_os_realpath (SeedContext ctx,
EXPECTED_EXCEPTION("os.realpath", "1 argument");
}
arg = seed_value_to_string (ctx, arguments[0], exception);
- ret =
canonicalize_file_name(arg
);
+ ret =
realpath(arg, NULL
);
g_free (arg);
return seed_value_from_string (ctx, ret, exception);