BUG? utmp returning incorrect 'i' in 2.2

Richard Bollinger rabollinger at home.com
Sat Feb 17 02:51:40 GMT 2001


Here's a diff -u patch which should apply OK to the current CVS source:

--- ./smbd/connection.c.orig Mon Jan 15 07:15:22 2001
+++ ./smbd/connection.c Fri Feb 16 21:46:32 2001
@@ -340,7 +340,7 @@
  }
 
  /* Save our result */
- slotnum = (int) dbuf.dptr;
+ slotnum = *((int*)dbuf.dptr);
 
  /* Tidy up */
  tdb_delete(tdb_utmp, kbuf);

----- Original Message ----- 
From: "Andrew Bartlett" <abartlet at pcug.org.au>
> Unfortunatly I can't get the patch to apply, nor see where its meant to
> apply.  Could you show me where it goes in the current SAMBA_2_2 branch?







More information about the samba-technical mailing list