Use HAVE_PW_GECOS when needed.

This commit is contained in:
Kurt Zeilenga 1999-03-17 22:27:46 +00:00
parent 96b2ae55ac
commit 1676d61130

View File

@ -144,9 +144,11 @@ pw2entry( Backend *be, struct passwd *pw )
attr_merge( e, "cn", vals );
attr_merge( e, "sn", vals );
attr_merge( e, "uid", vals );
#ifdef HAVE_PW_GECOS
val.bv_val = pw->pw_gecos;
val.bv_len = strlen( pw->pw_gecos );
attr_merge( e, "cn", vals );
#endif
val.bv_val = "person";
val.bv_len = strlen( val.bv_val );
attr_merge( e, "objectclass", vals );