diff options
Diffstat (limited to 'lib/libcurses/read_bsd_terminfo.c')
-rw-r--r-- | lib/libcurses/read_bsd_terminfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/read_bsd_terminfo.c b/lib/libcurses/read_bsd_terminfo.c index 091874f9a29..cccc1017178 100644 --- a/lib/libcurses/read_bsd_terminfo.c +++ b/lib/libcurses/read_bsd_terminfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read_bsd_terminfo.c,v 1.5 1998/10/08 04:20:00 millert Exp $ */ +/* $OpenBSD: read_bsd_terminfo.c,v 1.6 1998/11/19 18:08:54 millert Exp $ */ /* * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: read_bsd_terminfo.c,v 1.5 1998/10/08 04:20:00 millert Exp $"; +static char rcsid[] = "$OpenBSD: read_bsd_terminfo.c,v 1.6 1998/11/19 18:08:54 millert Exp $"; #endif #include <curses.priv.h> @@ -66,7 +66,7 @@ _nc_read_bsd_terminfo_entry(tn, tp) fname = pathvec; /* $TERMINFO may hold a path to a terminfo file */ - if ((p = getenv("TERMINFO")) != NULL) { + if (!issetugid() && (p = getenv("TERMINFO")) != NULL) { len = strlcpy(envterm, p, sizeof(envterm)); if (len < sizeof(envterm)) *fname++ = envterm; |