aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
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/posix
parent75ad10ea53073a2dc90808a36db2fcd5107909ce (diff)
downloadtoybox-4815b4f35f272ee3a4f8ac13adb5bd5dfc8ff4a6.tar.gz
Merge realpath into readlink, use xabspath() instead of libc realpath().
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/df.c b/toys/posix/df.c
index a93a762c..e1fd35f4 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -134,7 +134,7 @@ static void show_mt(struct mtab_list *mt, int measuring)
if (used*100 != percent*(used+avail)) percent++;
}
- device = *mt->device == '/' ? realpath(mt->device, NULL) : NULL;
+ device = *mt->device == '/' ? xabspath(mt->device, 0) : NULL;
if (!device) device = mt->device;
if (measuring) {