NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/57656: /sbin/shutdown prints message twice
The following reply was made to PR bin/57656; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: Benjamin Lorenz <mail%benjaminlorenz.com@localhost>
Cc: gnats-bugs%netbsd.org@localhost, ben@pocket.services
Subject: Re: bin/57656: /sbin/shutdown prints message twice
Date: Sat, 14 Oct 2023 09:24:47 +0000 (UTC)
On Sat, 14 Oct 2023, Benjamin Lorenz wrote:
> The problem starts with sudo from pkgsrc (latest stable
> release sudo-1.9.14p3): Running the command like this:
>
> sudo ./shutdown -Dh +30
>
> will trigger the message twice:
>
Starting with sudo-1.9.14, `use_tty' defaults to true, and `set_utmp'
also defaults to true, so there are 2 utmp entries, one for the
current tty/pty and another for the pty created by sudo. Since both
output to the same location, so you get 2 messages from wall(1).
Turn either `set_utmp' or `use_tty' off and this issue will go
away.
-RVP
Home |
Main Index |
Thread Index |
Old Index