svn commit: trunk/uClibc/libc/stdlib
aldot at uclibc.org
aldot at uclibc.org
Wed Nov 29 21:07:00 UTC 2006
Author: aldot
Date: 2006-11-29 13:07:00 -0800 (Wed, 29 Nov 2006)
New Revision: 16730
Log:
- Cleanout the only occurance of the SUSv3 LEGACY function getwd() that was
furthermore ifdef'ed out anyway.
Modified:
trunk/uClibc/libc/stdlib/realpath.c
Changeset:
Modified: trunk/uClibc/libc/stdlib/realpath.c
===================================================================
--- trunk/uClibc/libc/stdlib/realpath.c 2006-11-29 21:04:35 UTC (rev 16729)
+++ trunk/uClibc/libc/stdlib/realpath.c 2006-11-29 21:07:00 UTC (rev 16730)
@@ -66,15 +66,10 @@
strcpy(copy_path, path);
path = copy_path;
max_path = copy_path + PATH_MAX - 2;
- /* If it's a relative pathname use getwd for starters. */
+ /* If it's a relative pathname use getcwd for starters. */
if (*path != '/') {
/* Ohoo... */
-#define HAVE_GETCWD
-#ifdef HAVE_GETCWD
getcwd(new_path, PATH_MAX - 1);
-#else
- getwd(new_path);
-#endif
new_path += strlen(new_path);
if (new_path[-1] != '/')
*new_path++ = '/';
More information about the uClibc-cvs
mailing list