aboutsummaryrefslogtreecommitdiff
path: root/toys/other/realpath.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-03-02 11:32:09 -0600
committerRob Landley <rob@landley.net>2020-03-02 11:32:09 -0600
commit4815b4f35f272ee3a4f8ac13adb5bd5dfc8ff4a6 (patch)
treea515c544fc6bd996dcf87ad7811ccb71f14c75f7 /toys/other/realpath.c
parent75ad10ea53073a2dc90808a36db2fcd5107909ce (diff)
downloadtoybox-4815b4f35f272ee3a4f8ac13adb5bd5dfc8ff4a6.tar.gz
Merge realpath into readlink, use xabspath() instead of libc realpath().
Diffstat (limited to 'toys/other/realpath.c')
-rw-r--r--toys/other/realpath.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/toys/other/realpath.c b/toys/other/realpath.c
deleted file mode 100644
index 8f75d3f2..00000000
--- a/toys/other/realpath.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* realpath.c - Return the canonical version of a pathname
- *
- * Copyright 2012 Andre Renaud <andre@bluewatersys.com>
-
-USE_REALPATH(NEWTOY(realpath, "<1", TOYFLAG_USR|TOYFLAG_BIN))
-
-config REALPATH
- bool "realpath"
- default y
- help
- usage: realpath FILE...
-
- Display the canonical absolute pathname
-*/
-
-#include "toys.h"
-
-void realpath_main(void)
-{
- char **s = toys.optargs;
-
- for (s = toys.optargs; *s; s++) {
- if (!realpath(*s, toybuf)) perror_msg_raw(*s);
- else xputs(toybuf);
- }
-}