Skip to content

Commit

Permalink
man/: Install suauth.5 only if feature exists
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tobias Stoeckmann <[email protected]>
  • Loading branch information
stoeckmann committed Jan 14, 2025
1 parent 65723c3 commit effd1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion man/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -57,6 +56,7 @@ man_nopam = \

if WITH_SU
man_MANS += man1/su.1
man_nopam += man5/suauth.5
endif

if !USE_PAM
Expand Down

0 comments on commit effd1de

Please sign in to comment.