On Tue, 26 Jun 2001, alexus wrote: > i get this > > su-2.05# patch < ../vmysql-select-error.patch > Hmm... Looks like a unified diff to me... > The text leading up to this was: > -------------------------- > |--- vmysql.c~ Fri Jun 15 07:37:35 2001 > |+++ vmysql.c Mon Jun 25 18:06:51 2001 > -------------------------- > Patching file vmysql.c using Plan A... > Hunk #1 failed at 334. > 1 out of 1 hunks failed--saving rejects to vmysql.c.rej > done > su-2.05# pwd > /usr/local/src/vpopmail-4.9.10 Ah, I hadn't noticed that before, so I'd downloaded and changed 4.10.24. Attached is a patch for 4.9.10. Note that this is untested and changes only one error report of several in vmysql.c (the one used by Kieran's vuserinfo example, I think). I might change the others when I'm less busy. > is it supposte to be like that? No, the patch failed (because of some name changes). hope this helps, -- Daniel Biddle <[EMAIL PROTECTED]>
--- vmysql.c~ Sun Mar 4 23:44:39 2001 +++ vmysql.c Tue Jun 26 21:03:50 2001 @@ -238,7 +238,8 @@ free(in_domain); if (mysql_query(&mysql,SqlBuf)) { - printf("vsql_getpw: failed select\n"); + fprintf(stderr, "vmysql: getpw: select failed: %s\n", + mysql_error(&mysql)); return(NULL); }