diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-19 18:08:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-11-19 18:08:55 +0000 |
commit | 7c323f20fc840521b7a7ba00508599fa4d1fdccd (patch) | |
tree | 7c2431b07fe9c49f81d422ad5516896a4e994799 /lib/libcurses | |
parent | 90bad3ac908fd8b93e5ccfb6992df2332776919f (diff) |
Ignore $TERMINFO if setuigid
Diffstat (limited to 'lib/libcurses')
-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; |