]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/tinfo/access.c
ncurses 6.2 - patch 20210904
[ncurses.git] / ncurses / tinfo / access.c
index 339f169b27bfeed56f1d089daa3d0c6f99a3aa12..a735db26eee600c5fb218c83224de4324aeb75bf 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <tic.h>
 
-MODULE_ID("$Id: access.c,v 1.30 2021/08/28 22:07:31 tom Exp $")
+MODULE_ID("$Id: access.c,v 1.31 2021/08/29 10:35:17 tom Exp $")
 
 #define LOWERCASE(c) ((isalpha(UChar(c)) && isupper(UChar(c))) ? tolower(UChar(c)) : (c))
 
@@ -215,7 +215,7 @@ _nc_env_access(void)
 
     if (is_elevated()) {
        result = FALSE;
-    } else if ((getuid() == ROOT_UID) && (geteuid() == ROOT_UID)) {
+    } else if ((getuid() == ROOT_UID) || (geteuid() == ROOT_UID)) {
        result = FALSE;
     }
     return result;