bytecodealliance / bytecodealliance/rustix
Make it easier to debug path parsing failures
- Lenguaje dominante
- Rust
- Estrellas
- 2.1k
- Forks
- 296
- Merge medio
- 6 d 22 h
- PR fusionados (30 d)
- 4
Descripción
I have a non-trivial bit of code using `rustix` that is returning `EINVAL`. I thought it was an OS error, but it turns out that I was getting https://github.com/rust-lang/rust/issues/116523. However it was being masked by the fact that `Arg` impl returns `EINVAL` if there is a `\0` in the path bytes. It would be nice if `rustix` returned an error code less plausible than `EINVAL` when a path failure like this happens.
Guía de contribución
Línea de trabajo
Empieza siguiendo la implementación de `Arg` que convierte los bytes de ruta que contienen `\0` en `EINVAL` y, a continuación, inspecciona el comportamiento relacionado de gestión de errores en rustix. El issue se completa cuando este fallo de ruta ya no aparece como un `EINVAL` de OS plausible, mientras que el error subyacente comunicado sigue siendo distinguible.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- operating-systems
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100