diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-10-10 15:10:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-10-10 15:10:33 +0000 |
commit | bb7631942dcc6370156118c834fe56c8da632dff (patch) | |
tree | 7dd8d7b88d3d2fec5b00e81a8b830d9cf5dbe5d0 /lib/libcurses/curses.priv.h | |
parent | 6bf4b0ac08bc472a2f11aa0c7fa5d55f03bc8604 (diff) |
Don't ignore $TERMCAP, $TERMINFO, $TERMINFO_DIRS, $TERMPATH, and $HOME
if root but not setugid.
Fix select usage to deal with an arbitrary number of fd's. This code
is not compiled since we use poll(2).
Diffstat (limited to 'lib/libcurses/curses.priv.h')
-rw-r--r-- | lib/libcurses/curses.priv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcurses/curses.priv.h b/lib/libcurses/curses.priv.h index 3327b4d97cd..30fff8b8bcf 100644 --- a/lib/libcurses/curses.priv.h +++ b/lib/libcurses/curses.priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: curses.priv.h,v 1.29 2000/10/08 22:46:55 millert Exp $ */ +/* $OpenBSD: curses.priv.h,v 1.30 2000/10/10 15:10:29 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. * @@ -151,7 +151,11 @@ extern int errno; * point to custom terminfo/termcap locations. */ #ifdef USE_ROOT_ENVIRON +#ifdef __OpenBSD__ +#define use_terminfo_vars() (!issetugid()) +#else #define use_terminfo_vars() 1 +#endif #else #define use_terminfo_vars() _nc_env_access() extern int _nc_env_access(void); |