$NetBSD: patch-ac,v 1.2 2013/03/02 18:18:10 joerg Exp $ --- ldapvi.c.orig 2007-05-05 10:17:26.000000000 +0000 +++ ldapvi.c @@ -470,7 +470,7 @@ change_mechanism(bind_options *bo) bo->authmethod = LDAP_AUTH_SASL; puts("Switching to SASL authentication."); } - bo->sasl_mech = getline("SASL mechanism", bo->sasl_mech); + bo->sasl_mech = lv_getline("SASL mechanism", bo->sasl_mech); } static int @@ -1465,7 +1465,7 @@ copy_sasl_output(FILE *out, char *sasl) int line = 0; int c; - if (lstat(sasl, &st) == -1) return; + if (lstat(sasl, &st) == -1) return 0; if ( !(in = fopen(sasl, "r"))) syserr(); if (st.st_size > 0) { @@ -1499,6 +1499,7 @@ copy_sasl_output(FILE *out, char *sasl) fputc(c, out); } } + return line; } static GArray *