I must have lost this line somehow when I moved the patch from my AOSP tree to a toybox tree. (But the ln tests passed on the host because I was using coreutils ln there :-( ) --- tests/readlink.test | 1 + toys/other/readlink.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
From c3bec091376fa3478bfac81c0d28839e70719c1b Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Wed, 2 Oct 2019 18:46:36 -0700 Subject: [PATCH] readlink: add missing line, plus a test.
I must have lost this line somehow when I moved the patch from my AOSP tree to a toybox tree. (But the ln tests passed on the host because I was using coreutils ln there :-( ) --- tests/readlink.test | 1 + toys/other/readlink.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/readlink.test b/tests/readlink.test index 52121770..cc728dbf 100755 --- a/tests/readlink.test +++ b/tests/readlink.test @@ -17,6 +17,7 @@ testing "-f missing" "readlink -f notfound" "$APWD/notfound\n" "" "" ln -sf notfound link testing "link" "readlink link" "notfound\n" "" "" +testing "links" "readlink link link" "notfound\nnotfound\n" "" "" testing "link->missing" "readlink -f link" "$APWD/notfound\n" "" "" ln -sf ../../ link testing "stays relative" "readlink link" "../../\n" "" "" diff --git a/toys/other/readlink.c b/toys/other/readlink.c index eb63d7f4..9ebf68d7 100644 --- a/toys/other/readlink.c +++ b/toys/other/readlink.c @@ -2,7 +2,7 @@ * * Copyright 2007 Rob Landley <[email protected]> -USE_READLINK(NEWTOY(readlink, "<1>1nqmef(canonicalize)[-mef]", TOYFLAG_USR|TOYFLAG_BIN)) +USE_READLINK(NEWTOY(readlink, "<1nqmef(canonicalize)[-mef]", TOYFLAG_USR|TOYFLAG_BIN)) config READLINK bool "readlink" -- 2.23.0.581.g78d2f28ef7-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
