aboutsummaryrefslogtreecommitdiff
path: root/toys/readlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/readlink.c')
-rw-r--r--toys/readlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/readlink.c b/toys/readlink.c
index 882fddc6..51dbf02f 100644
--- a/toys/readlink.c
+++ b/toys/readlink.c
@@ -35,7 +35,7 @@ void readlink_main(void)
// Calculating full cannonical path?
- if (CFG_READLINK_F && toys.optflags) s = realpath(*toys.optargs, NULL);
+ if (CFG_READLINK_F && toys.optflags) s = xrealpath(*toys.optargs);
else s = xreadlink(*toys.optargs);
if (s) {