summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/auth.c b/auth.c
index a0a3fb6d..61984a07 100644
--- a/auth.c
+++ b/auth.c
@@ -182,6 +182,9 @@ pwcopy(struct passwd *pw)
#ifdef HAVE_PW_CLASS_IN_PASSWD
copy->pw_class = xstrdup(pw->pw_class);
#endif
+#ifdef HAVE_CYGWIN
+ copy->pw_gecos = xstrdup(pw->pw_gecos);
+#endif
copy->pw_dir = xstrdup(pw->pw_dir);
copy->pw_shell = xstrdup(pw->pw_shell);
return copy;