mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
pw_gecos depends on HAVE_PW_GECOS
This commit is contained in:
parent
3fd49c39ec
commit
dc1773dbd4
1 changed files with 4 additions and 1 deletions
|
|
@ -541,6 +541,7 @@ rewrite_xmap_apply(
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef HAVE_PW_GECOS
|
||||
if ( pwd->pw_gecos != NULL && pwd->pw_gecos[0] != '\0' ) {
|
||||
int l = strlen( pwd->pw_gecos );
|
||||
|
||||
|
|
@ -555,7 +556,9 @@ rewrite_xmap_apply(
|
|||
break;
|
||||
}
|
||||
val->bv_len = l;
|
||||
} else {
|
||||
} else
|
||||
#endif /* HAVE_PW_GECOS */
|
||||
{
|
||||
val->bv_val = strdup( key->bv_val );
|
||||
val->bv_len = key->bv_len;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue