bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ANN: ncurses-6.4-20230708


From: Thomas Dickey
Subject: Re: ANN: ncurses-6.4-20230708
Date: Sat, 22 Jul 2023 12:43:18 -0400

On Sat, Jul 22, 2023 at 07:58:43PM +0200, Sven Joachim wrote:
> On 2023-07-22 11:52 -0400, Thomas Dickey wrote:
> 
> > On Mon, Jul 10, 2023 at 01:30:58PM -0400, Thomas Dickey wrote:
> >> ----- Original Message -----
> >> | From: "Sven Joachim" <svenjoac@gmx.de>
> >> | To: "Thomas Dickey" <dickey@his.com>
> >> | Cc: "Ncurses Mailing List" <bug-ncurses@gnu.org>
> >> | Sent: Monday, July 10, 2023 11:23:24 AM
> >> | Subject: Re: ANN: ncurses-6.4-20230708
> >>
> >> | On 2023-07-09 00:40 +0000, Thomas Dickey wrote:
> >> |
> >> |> 20230708
> >> |>         + disallow using $TERMINFO or $HOME/.terminfo when tic "-o" 
> >> option is
> >> |>           used (report by Sven Joachim, Debian #1040048).
> >> |
> >> | Thanks for implementing that.  Unfortunately it seems to have introduced
> >> | a new problem: if TERMINFO is set to a non-existent directory, tic will
> >> | write to ${HOME}/.terminfo rather than the system database when run as
> >> | root:
> >>
> >> hmm - I can probably fix that without too much work...
> >
> > maybe not: the change I made was only if "-o" is set.
> > I did that to provide a more reliable method of scripting/packaging.
> >
> > If "-o" is not set, there is no change to the way environment variables
> > are used.  The existing --disable-root-environ option applies to this case.
> 
> Huh, indeed.
> 
> >> | ,----
> >> || # tic -V
> >> || ncurses 6.4.20230708
> >> || # ncurses6-config --terminfo
> >> || /etc/terminfo
> >> || # infocmp dumb > dumb.ti
> >> || # TERMINFO=/no/such/dir HOME=/ tic dumb.ti
> >> || # ls /etc/terminfo/d
> >> || ls: cannot access '/etc/terminfo/d': No such file or directory
> >> || # ls /.terminfo/d
> >> || dumb
> >> || #
> 
> I still consider this behavior a bug, but now I see it is not a
> regression.  One more reason to use the -o option rather than setting
> TERMINFO.

well... using --disable-root-environ would disallow root from using both
$TERMINFO and $HOME/.terminfo (I suppose that one might want only one of
those, but it seemed that might be _too_ many choices).
 
> Have a nice weekend,

likewise

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]