Samba utmp patch

Giulio Orsero giulioo at pobox.com
Thu Apr 6 11:57:35 GMT 2000


On Thu, 6 Apr 2000 21:35:32 +1000, hai scritto:

>Both.  Interesting.  I see from the "utmp.h" (redaht 6.1?) you sent me a
>few weeks ago that there is a: 
Yes, RedHat6.1

>Line 369: Just a straightforward typo in the patch:  change "ut.ut_host" 
>to "u.ut_host".
>Line 364: Hopefully only a typo (I hope it's not more complicated!)
>Try changing "u->ut_time" to "u->ut_tv".

I made just the 2 changes:

Compiling smbd/connection.c
smbd/connection.c: In function `utmp_fill':
smbd/connection.c:369: request for member `ut_host' in something not a
structure or union
make: *** [smbd/connection.o] Error 1

    362 #if defined(HAVE_UT_UT_TV)
    363     gettimeofday(&timeval, NULL);
    364     u->ut_tv = timeval;
    365 #endif /* defined(HAVE_UT_UT_TV) */
    366
    367 #if defined(HAVE_UT_UT_HOST)
    368     if (host) {
    369         pstrcpy(u.ut_host, host);
    370     }
    371 #endif /* defined(HAVE_UT_UT_HOST) */
    372
    373 #if defined(HAVE_UT_UT_ID)
    374     rc = ut_id_encode(i, u->ut_id);

-- 
giulioo at pobox.com


More information about the samba-technical mailing list