bug: find panic when a file owner or uid invalid with -ls
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 src/find/matchers/ls.rs 的第 155 行开始,使用 issue 中的命令,通过无效的 owner 或 UID 重现该失败。检查失败的 unwrap,并为 find /tmp/panic_file -ls 添加覆盖。完成的标准是该命令不再 panic,并以类似 GNU find 的方式报告文件。
由索引模型根据 Issue 内容生成。
描述
Hi, findutils mainteners
we reproduced that via
$ touch /tmp/panic_file
$ sudo chown 9999:9999 /tmp/panic_file
as i see a panic
relunsec@relunsec:~/software/findutils$ ./target/release/find /tmp/panic_file -ls
thread 'main' (154111) panicked at src/find/matchers/ls.rs:155:48:
called `Result::unwrap()` on an `Err` value: ENOENT
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
but the gnu version it fully works
relunsec@relunsec:~/software/findutils$ /bin/find /tmp/panic_file -ls
13327 0 -rw-rw-r-- 1 9999 9999 0 Jun 4 12:34 /tmp/panic_file
- 主要语言
- Rust
- 星标
- 653
- 派生
- 115
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/findutils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
find: -printf %A@ and %T@ reject timestamps before 1970可能已有人在做 @zhangpan2001 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
维护者通常 1 天内回复
-
find on Windows: opt in to / as the path separator可能已有人在做 @mutewinter 于 19 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 15/100
维护者通常 1 天内回复
-
xargs: -x runs a pending command before rejecting an oversized argument可能已有人在做 @SichenLiang 于 21 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 28/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
longbridge/gpui-kit#3795 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
saltnpepper97/halley#271 ·
维护者通常 1 天内回复
-
Remove the unused gh-aw agentic workflow setup可能已有人在做 @AviAvni 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 3 天内回复
-
bug stdlib
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement good first issue
难度 1/5 1-3 小时 新手友好度 83/100
Sh1n1230/PunctuationToggle#308 ·
维护者通常 1 天内回复