bug-ncurses
[Top][All Lists]
Advanced

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

configure option --disable-root-access does not work


From: Sven Joachim
Subject: configure option --disable-root-access does not work
Date: Sat, 15 Apr 2023 08:42:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

The --disable-root-access configure option does not work, due to a
copy&paste error in configure.in:

,----
| ./configure --disable-root-access
| [...]
| checking if you want to permit setuid programs to access all files... yes
| [...]
`----

The attached patch (and regenerating ./configure) fixes that. :-)

Cheers,
       Sven

diff --git a/configure.in b/configure.in
index c332e045..97a4494a 100644
--- a/configure.in
+++ b/configure.in
@@ -875,7 +875,7 @@ AC_MSG_RESULT($with_root_environ)
 test "x$with_root_environ" = xyes && AC_DEFINE(USE_ROOT_ENVIRON,1,[Define to 1 
if root is allowed to use ncurses environment])

 AC_MSG_CHECKING(if you want to permit setuid programs to access all files)
-AC_ARG_ENABLE(root-environ,
+AC_ARG_ENABLE(root-access,
        [  --disable-root-access   restrict file-access when running setuid],
        [with_root_access=$enableval],
        [with_root_access=yes])

reply via email to

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