diff options
author | Jordan Williams <jordan@jwillikers.com> | 2024-04-22 11:04:36 -0500 |
---|---|---|
committer | Jordan Williams <jordan@jwillikers.com> | 2024-04-24 15:30:30 -0500 |
commit | 8c917cf8a054058b261c7b02699b017443dbb501 (patch) | |
tree | 594558bf8ceaab49aaf43b7a6dcfdea7581e922a | |
parent | f71723ef67d4d1ab5762492c4a162498c53e51eb (diff) | |
download | util-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.build | 4 |
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', |