aboutsummaryrefslogtreecommitdiff
path: root/lib/xwrap.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-07-30 19:22:55 -0500
committerRob Landley <rob@landley.net>2014-07-30 19:22:55 -0500
commit3c69835d6e0b4f8e72e441ae5e34439612790844 (patch)
tree40e72b86d19d159791f1f658aa94274fc12e3ec0 /lib/xwrap.c
parentfd14a61e941828c580bd476bb51f371f3d1ddf09 (diff)
downloadtoybox-3c69835d6e0b4f8e72e441ae5e34439612790844.tar.gz
As long as I had to write xabspath(), no point in wrapping realpath().
Diffstat (limited to 'lib/xwrap.c')
-rw-r--r--lib/xwrap.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index 4516250f..4d8ad711 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -421,14 +421,6 @@ error:
return NULL;
}
-// Resolve all symlinks, returning malloc() memory.
-char *xrealpath(char *path)
-{
- char *new = realpath(path, NULL);
- if (!new) perror_exit("realpath '%s'", path);
- return new;
-}
-
void xchdir(char *path)
{
if (chdir(path)) error_exit("chdir '%s'", path);