[dev] [PATCH 2/2] find: Use the symlink itself for broken symlinks

2018-11-01 Thread tavianator
From: Tavian Barnes About -H/-L, POSIX says > If the referenced file does not exist, the file information and type > shall be for the link itself. so we need to fall back from stat() to lstat() if errno indicates a broken link. --- find.c | 17 +++-- 1 file changed, 15 insertions(+

[dev] [PATCH 1/2] find: "-" by itself is a file name

2018-11-01 Thread tavianator
From: Tavian Barnes See https://savannah.gnu.org/bugs/?15235 for a discussion of why the POSIX wording implies that "-" by itself is not part of the expression. --- find.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/find.c b/find.c index 03889a8..f96c05b 100644 ---