summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 7473ba56bc..5fa86d62aa 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4972,8 +4972,10 @@ PP(pp_gpwent)
sv_setpv(sv, spwent->sp_pwdp);
}
# endif
+# ifdef PWPASSWD
if (!SvPOK(sv)) /* Use the standard password, then. */
sv_setpv(sv, pwent->pw_passwd);
+# endif
# ifndef INCOMPLETE_TAINTS
/* passwd is tainted because user himself can diddle with it.