From 3c69835d6e0b4f8e72e441ae5e34439612790844 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 30 Jul 2014 19:22:55 -0500 Subject: As long as I had to write xabspath(), no point in wrapping realpath(). --- lib/xwrap.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'lib/xwrap.c') 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); -- cgit v1.2.3