From 4815b4f35f272ee3a4f8ac13adb5bd5dfc8ff4a6 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 2 Mar 2020 11:32:09 -0600 Subject: Merge realpath into readlink, use xabspath() instead of libc realpath(). --- toys/posix/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix') 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) { -- cgit v1.2.3