aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/file.c b/toys/posix/file.c
index 5f18a539..063397ce 100644
--- a/toys/posix/file.c
+++ b/toys/posix/file.c
@@ -476,7 +476,7 @@ void file_main(void)
char *lnk = xreadlink(name);
sprintf(what = toybuf, "%ssymbolic link to %s",
- stat(lnk, &sb) ? "broken " : "", lnk);
+ stat(name, &sb) ? "broken " : "", lnk);
free(lnk);
}
xputs(what);