Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Feature Request: "Commit message"-like flag for logging purposes

Offen
#440 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
c
Bereich
cli, security

Rechercherichtung

Start by reading the sudo command-line option handling and logging entry points to find where a new message option would be parsed and recorded. The issue gives an example invocation and log format; done would mean sudo accepts the message and includes it in the command log. The request is 551 days old and has no comments, so there is no indication someone will answer questions.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Sudo would benefit from the ability to include a message for logging purposes, similar to Git's -m flag ; e.g.

sudo -m "Cron fell asleep"  systemctl restart cron.service

And log something along the lines of this in the log:

Apr 09 12:40:55 clocktower sudo[10378]: morgajel : TTY=pts/4 ; PWD=/home/morgajel ; USER=root  MESSAGE="Cron fell asleep"; COMMAND=/usr/bin/systemctl restart cron.service

Thoughts?

Thank you for your consideration.

Vorherrschende Sprache
C
Sterne
1.7k
Forks
306
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
24

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sudo-project/sudo

Alle Issues in sudo-project/sudo

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.