diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-29 21:07:00 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-11-29 21:07:00 +0000 |
commit | 3d1312ae2ac9161f601fa784af18f083c435d844 (patch) | |
tree | 25da98d28e95b158627bdabb22d02363d23f764d /libc/stdlib/realpath.c | |
parent | 17f7f3d6dd56714d7c708774ddce405d6fff9a99 (diff) |
- Cleanout the only occurance of the SUSv3 LEGACY function getwd() that was
furthermore ifdef'ed out anyway.
Diffstat (limited to 'libc/stdlib/realpath.c')
-rw-r--r-- | libc/stdlib/realpath.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/stdlib/realpath.c b/libc/stdlib/realpath.c index c3cc517de..b7c7ef413 100644 --- a/libc/stdlib/realpath.c +++ b/libc/stdlib/realpath.c @@ -66,15 +66,10 @@ char resolved_path[]; 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++ = '/'; |