#include <unistd.h>
#endif /* HAVE_UNISTD_H */
#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <pwd.h>
static char *sudo_getepw(pw_ent)
struct passwd *pw_ent;
{
+
+ /* if there is a function to check for shadow enabled, use it... */
+#ifdef HAVE_ISCOMSEC
+ if (!iscomsec())
+ return(pw_ent->pw_passwd);
+#endif /* HAVE_ISCOMSEC */
+#ifdef HAVE_ISSECURE
+ if (!issecure())
+ return(pw_ent->pw_passwd);
+#endif /* HAVE_ISSECURE */
+
#ifdef HAVE_GETPRPWNAM
{
struct pr_passwd *spw_ent;