Samba utmp patch

Giulio Orsero giulioo at pobox.com
Thu Apr 6 10:34:07 GMT 2000


On Thu, 6 Apr 2000 10:48:36 +0100 (BST), hai scritto:

>It needs a new "configure".  This is what "autoconf" does, using
>"configure.in" as its source.  (A packaged distribution of any product
>I guess you haven't got "autoconf".  
No, it was me that didn't understand :)

>Let's see what happens with the revised "configure".  When running it, it
>might make be worth making a note of "utmp"-related things near the end,
>in case things still prove problematical.

I grep for UT to be sure not to leave anything out:

# grep UT config.h
#define HAVE_UTIMBUF 1
/* #undef HAVE_PUTPRPWNAM */
/* #undef HAVE_SET_AUTH_PARAMETERS */
#define WITH_AUTOMOUNT 1
#define WITH_UTMP 1
/* #undef KRB4_AUTH */
/* #undef KRB5_AUTH */
/* #undef HAVE_RPC_AUTH_ERROR_CONFLICT */
#define HAVE_UT_UT_NAME 1
#define HAVE_UT_UT_USER 1
#define HAVE_UT_UT_ID 1
#define HAVE_UT_UT_HOST 1
#define HAVE_UT_UT_TIME 1
#define HAVE_UT_UT_TV 1
/* #undef HAVE_UX_UT_SYSLEN */
/* #undef HAVE_GETAUTHUID */
/* #undef HAVE_PUTPRPWNAM */
/* #undef HAVE_SET_AUTH_PARAMETERS */
#define HAVE_UTIME 1
#define HAVE_UTIMES 1
#define HAVE_UTIME_H 1
#define HAVE_UTMP_H 1
#define HAVE_UTMPX_H 1


# make
..
Using LIBS = -lreadline -ldl  -lcrypt -lpam
Compiling smbd/server.c
Compiling smbd/files.c
Compiling smbd/chgpasswd.c
Compiling smbd/connection.c
smbd/connection.c: In function `utmp_fill':
smbd/connection.c:364: incompatible types in assignment
smbd/connection.c:369: `ut' undeclared (first use in this function)
smbd/connection.c:369: (Each undeclared identifier is reported only once
smbd/connection.c:369: for each function it appears in.)
make: *** [smbd/connection.o] Error 1

connection.c
    362 #if defined(HAVE_UT_UT_TV)
    363     gettimeofday(&timeval, NULL);
    364     u->ut_time = timeval;
    365 #endif /* defined(HAVE_UT_UT_TV) */
    366
    367 #if defined(HAVE_UT_UT_HOST)
    368     if (host) {
    369         pstrcpy(ut.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);
    375 #endif /* defined(HAVE_UT_UT_ID) */
    376
    377     return(rc);

-- 
giulioo at pobox.com


More information about the samba-technical mailing list