Fix build failures with --disable-shadowgrp. Thanks to Jürgen
Daubert for the patch. * libmisc/salt.c: Include <stdio.h>, needed for stderr and printf functions. * lib/encrypt.c: Include <stdio.h>, needed for perror, stderr and printf functions * src/usermod.c: sgr_locked exists only if SHADOWGRP is defined. * src/chgpasswd.c: Only check is the gshadow file exists if SHADOWGRP is defined.
This commit is contained in:
@ -342,7 +342,9 @@ int main (int argc, char **argv)
|
||||
|
||||
check_perms ();
|
||||
|
||||
#ifdef SHADOWGRP
|
||||
is_shadow_grp = sgr_file_present ();
|
||||
#endif
|
||||
|
||||
open_files ();
|
||||
|
||||
|
@ -1113,7 +1113,9 @@ static void close_files (void)
|
||||
pw_locked = 0;
|
||||
spw_locked = 0;
|
||||
gr_locked = 0;
|
||||
#ifdef SHADOWGRP
|
||||
sgr_locked = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Close the DBM and/or flat files
|
||||
|
Reference in New Issue
Block a user