]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
man/: Install suauth.5 only if feature exists
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 12 Jan 2025 17:45:13 +0000 (18:45 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 15 Jan 2025 23:37:04 +0000 (00:37 +0100)
Support for /etc/suauth only exists if su is installed without
PAM support. If su is not installed (--without-su) or if PAM
support is enabled (default), do not install suauth.5 manual
page.

The SU_ACCESS preprocessor definition is used to decide if
feature exists or not. See links for more details.

Link: https://github.com/shadow-maint/shadow/blob/65723c3c4704fde4cc8c94299123d3eeca81aadf/src/su.c#L558-L581
Link: https://github.com/shadow-maint/shadow/blob/65723c3c4704fde4cc8c94299123d3eeca81aadf/configure.ac#L628-L654
Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
man/Makefile.am

index 14055097c433675f1735cee13d4c63e0bcd613cb..f34ed7acfb34ecc7487ab748956774dc0674e09e 100644 (file)
@@ -39,7 +39,6 @@ man_MANS = \
        man1/sg.1 \
        man3/shadow.3 \
        man5/shadow.5 \
-       man5/suauth.5 \
        man8/useradd.8 \
        man8/userdel.8 \
        man8/usermod.8 \
@@ -57,6 +56,7 @@ man_nopam = \
 
 if WITH_SU
 man_MANS += man1/su.1
+man_nopam += man5/suauth.5
 endif
 
 if !USE_PAM