pass find includes symlinks
Cong Ma
cong.ma at obspm.fr
Wed Apr 18 07:04:05 CEST 2018
On 17/04/2018 23:15, Till Schäfer wrote:
> Hi,
> this is a known issue:
> https://lists.zx2c4.com/pipermail/password-store/2017-October/003098.html
> https://lists.zx2c4.com/pipermail/password-store/2017-October/003064.html
>
> I just reported the issue to tree (They do not have an issue tracker, but i send an E-Mail). Lets see if something happens upstream.
I, too, sent a bug report and a patch to the maintainer last week.
Meanwhile, for the impatient, here's the proposed (tiny) patch to
tree-1.7.0 (attached as a file). If you're interested in testing the
results, I'll be very grateful. I'm interested in a fix but I can't
honestly claim that I understand the source of `tree' very well. There
also appears to be a lack of testing for `tree', which hinders my
investigation.
-------------- next part --------------
diff -uNrp tree-1.7.0/tree.c tree-1.7.0a/tree.c
--- tree-1.7.0/tree.c 2014-04-24 05:38:24.000000000 +0800
+++ tree-1.7.0a/tree.c 2018-04-15 15:43:09.876786908 +0800
@@ -707,7 +707,7 @@ struct _info **read_dir(char *dir, int *
}
#ifndef __EMX__
- if ((lst.st_mode & S_IFMT) != S_IFDIR && !(((lst.st_mode & S_IFMT) == S_IFLNK) && lflag)) {
+ if ((lst.st_mode & S_IFMT) != S_IFDIR) {
if (pattern && patmatch(ent->d_name,pattern) != 1) continue;
}
if (ipattern && patmatch(ent->d_name,ipattern) == 1) continue;
More information about the Password-Store
mailing list