aboutsummaryrefslogtreecommitdiff
path: root/libbb/simplify_path.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-11 16:19:28 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-11 16:19:28 +0000
commit661a976a4fe1564096942a548031bcc1a4915057 (patch)
treec13da1537be3327e041fac86d9fdce68de70298a /libbb/simplify_path.c
parent5614b1d6f3e1a5c137f431999fbbb38ce8cb8db8 (diff)
downloadbusybox-w32-661a976a4fe1564096942a548031bcc1a4915057.tar.gz
busybox-w32-661a976a4fe1564096942a548031bcc1a4915057.tar.bz2
busybox-w32-661a976a4fe1564096942a548031bcc1a4915057.zip
syslogd: fix "readpath bug" by using readlink instead
libbb: rename xgetcwd and xreadlink git-svn-id: svn://busybox.net/trunk/busybox@17854 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/simplify_path.c')
-rw-r--r--libbb/simplify_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/simplify_path.c b/libbb/simplify_path.c
index b714c66b6..7e68e3911 100644
--- a/libbb/simplify_path.c
+++ b/libbb/simplify_path.c
@@ -16,7 +16,7 @@ char *bb_simplify_path(const char *path)
16 if (path[0] == '/') 16 if (path[0] == '/')
17 start = xstrdup(path); 17 start = xstrdup(path);
18 else { 18 else {
19 s = xgetcwd(NULL); 19 s = xrealloc_getcwd_or_warn(NULL);
20 start = concat_path_file(s, path); 20 start = concat_path_file(s, path);
21 free(s); 21 free(s);
22 } 22 }