[Toybox] [PATCH] readlink: add --canonicalize synonym for -f.

enh enh at google.com
Wed Dec 19 09:20:49 PST 2018


Internally, Google uses all the longopts; Android currently only uses
this one. I was tempted to add the others, but went with "add them when a
toybox user needs them" rather than "add them when you've seen them used".
---
 toys/other/readlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/other/readlink.c b/toys/other/readlink.c
index 1a75dcac..6a1a7443 100644
--- a/toys/other/readlink.c
+++ b/toys/other/readlink.c
@@ -2,7 +2,7 @@
  *
  * Copyright 2007 Rob Landley <rob at landley.net>

-USE_READLINK(NEWTOY(readlink, "<1>1nqmef[-mef]", TOYFLAG_USR|TOYFLAG_BIN))
+USE_READLINK(NEWTOY(readlink, "<1>1nqmef(canonicalize)[-mef]",
TOYFLAG_USR|TOYFLAG_BIN))

 config READLINK
   bool "readlink"
-- 
2.20.1.415.g653613c723-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-readlink-add-canonicalize-synonym-for-f.patch
Type: text/x-patch
Size: 966 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181219/f8b577aa/attachment-0002.bin>


More information about the Toybox mailing list