aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Williams <jordan@jwillikers.com>2024-04-22 11:04:36 -0500
committerJordan Williams <jordan@jwillikers.com>2024-04-24 15:30:30 -0500
commit8c917cf8a054058b261c7b02699b017443dbb501 (patch)
tree594558bf8ceaab49aaf43b7a6dcfdea7581e922a
parentf71723ef67d4d1ab5762492c4a162498c53e51eb (diff)
downloadutil-linux-8c917cf8a054058b261c7b02699b017443dbb501.tar.gz
meson: Require pty for the su and runuser executables
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r--meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 68d6b8bed8..feca474ca7 100644
--- a/meson.build
+++ b/meson.build
@@ -1091,7 +1091,7 @@ if opt and not is_disabler(exe)
bashcompletions += ['utmpdump']
endif
-opt = not get_option('build-su').disabled()
+opt = get_option('build-su').require(have_pty).allowed()
exe = executable(
'su',
'login-utils/su.c',
@@ -1173,7 +1173,7 @@ if opt and not is_disabler(exe)
join_paths(mandir, 'man8/vigr.8'))
endif
-opt = not get_option('build-runuser').disabled()
+opt = get_option('build-runuser').require(have_pty).allowed()
exe = executable(
'runuser',
'login-utils/runuser.c',