chage -E, usermod -e: dates other than YYYY-MM-DD are rejected
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
Línea de trabajo
Start in shadow-core/src/date.rs and inspect how chage -E, usermod -e, and useradd -e parse expiration dates. Compare the current parser with the GNU date forms listed in the issue and check how uutils/parse_datetime handles them. Done means those commands accept the listed forms while preserving the existing day-count behavior and matching GNU's results.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
chage -E and usermod -e (and useradd -e) accept only YYYY-MM-DD or a day count. GNU 4.17.4 reads the date with its general date parser, so other common forms work:
# chage -E 01/02/2030 alice
GNU: exit 0, expire = 21916 (2030-01-02)
here: invalid date '01/02/2030' (expected YYYY-MM-DD or days since epoch), exit 2
Same for 2030/01/02, 1/2/30, 2 Jan 2030, January 2, 2030 and tomorrow, which GNU all takes; usermod -e 01/02/2030 exits 3 here. Scripts written for GNU that pass a date in one of these forms stop working.
The parsing is in shadow-core/src/date.rs. uutils/parse_datetime already reads the GNU date -d forms; would using it there be welcome? I can send a PR.
Checked on main 7a84527 in ubuntu:26.04 (GNU passwd 1:4.17.4-2ubuntu3).
- Lenguaje dominante
- Rust
- Estrellas
- 17
- Forks
- 10
- Merge medio
- 18 h 30 min
- PR fusionados (30 d)
- 24
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de uutils/shadow
-
groupmod -U: members change in /etc/group but not in /etc/gshadowPosiblemente ocupada @jayhemnani9910 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
usermod: -r/--remove is not acceptedPosiblemente ocupada @jayhemnani9910 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
pwck: warnings and "no changes" on clean files, nothing after problemsPosiblemente ocupada @jayhemnani9910 la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
Los mantenedores suelen responder en 1 día
-
usermod: -u and -g exit 0 on a symlinked home, GNU exits 12Posiblemente ocupada @pierre-warnier la tomó hace 2 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
Todos los issues de uutils/shadow
Issues similares
-
vorbis: Inverse coupling runs in wrong orderPosiblemente ocupada @computerfan la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
area:kernel needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bherbruck/solvecraft#8454 · 1 reacción ·
-
Add `Path.parent`Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
audit(c2): assert [profile.release] parity across RUST_MANIFESTS in scripts/ci/check-workfl (C2-26)Abiertohygiene type:refactor
Dificultad 2/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día