Deliberate differences from upstream: review list

Aperta
#388 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start by reading the listed behavior differences and the referenced man page, docs/man/usermod.8.md; compare them with the Ubuntu 26.04 passwd reference named in the issue. The scope spans several commands and does not specify which difference to change, so first identify a specific behavior to challenge and clarify the intended outcome. Done means the challenged differences have a decided outcome; the issue names no tests or implementation files.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

These differ from upstream on purpose and are documented in the man pages. This issue is the place to challenge any of them.

usermod (docs/man/usermod.8.md)

  • The group of a hard link to someone else's file is left alone.
  • A trailing slash on a symlinked home exits 12 and walks nothing.
  • The home walk continues after an error, then exits 12.
  • Entries deleted or replaced mid-walk exit 0.
  • A cross-filesystem -m with -u or -g clears setuid and setgid bits.
  • A home the user does not own is moved by -m -u but not walked.
  • -p with a colon writes nothing, where upstream leaves partial changes.

groupadd

  • -p with a colon writes nothing.

useradd

  • --badname "" exits 1, where upstream writes an entry with no name.

pwck and grpck

  • No repair prompts; comments and blank lines are kept.
  • -s checks first and will not sort a file with problems.
  • A missing file exits 3, not 4.
  • pwck only: a relative home or shell is a problem, and a shadow mode warning goes to stderr.

-Z

  • Refused with -P.

Reference: Ubuntu 26.04 passwd 1:4.17.4-2ubuntu3. shadow-rs: main at 92ac29b.

Lingua principale
Rust
Stelle
18
Fork
10
Merge medio
1g 15m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uutils/shadow

Tutte le issue di uutils/shadow

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.