Use realpath() instead of the GNU libc extension canonicalize_file_path (again)
authorTim Horton <hortont424@gmail.com>
Thu, 31 Dec 2009 10:40:29 +0000 (05:40 -0500)
committerTim Horton <hortont424@gmail.com>
Thu, 31 Dec 2009 10:40:29 +0000 (05:40 -0500)
modules/os/seed-os.c

index 1b08374..ad2dfc1 100644 (file)
@@ -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);