23 lines
713 B
Markdown
23 lines
713 B
Markdown
# 2026-06-04 — 文件列表 ls 时区字段解析修复
|
||
|
||
## 摘要
|
||
|
||
修复 GNU `ls -la` 在 `long-iso` 输出中带 `+0800` 时区时,文件名被误解析为 `+0800` 的 bug。
|
||
|
||
## 动机
|
||
|
||
Ubuntu 默认 `ls` 常输出 `2026-06-01 12:00:00 +0800 filename`,原逻辑将 `parts[7]` 当作文件名,文件管理页缺文件或显示异常。
|
||
|
||
## 涉及文件
|
||
|
||
- `server/utils/unix_ls.py`
|
||
- `tests/test_file_permissions.py`(原有用例现已通过)
|
||
- `tests/test_security_unit.py`、`tests/test_step0_infrastructure.py`(中间件测试对齐纯 ASGI)
|
||
|
||
## 验证
|
||
|
||
```bash
|
||
pytest tests/test_file_permissions.py -q
|
||
pytest tests/ -q # 135 passed, 1 skipped 级(CDN 预览 HTML 见审计报告)
|
||
```
|