[seed] Use realpath() instead of the GNU libc extension canonicalize_file_path (again)



commit c2be82dabf2208fc533838a2deea1c8f415583fd
Author: Tim Horton <hortont424 gmail com>
Date:   Thu Dec 31 05:40:29 2009 -0500

    Use realpath() instead of the GNU libc extension canonicalize_file_path (again)

 modules/os/seed-os.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/modules/os/seed-os.c b/modules/os/seed-os.c
index 1b08374..ad2dfc1 100644
--- 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]