Samba 2.0.7 : utmp patch

David Lee T.D.Lee at durham.ac.uk
Tue May 2 11:07:54 GMT 2000


On Sun, 30 Apr 2000, David Lee wrote:

> I have developed a patch for 2.0.7 which should address most of the known
> issues.  In particular:
> o  it should compile on all systems for which folk earlier tested it;
> o  it stands a better chance of compiling on systems not yet tested;
> o  it should function well on tested and untested systems (but see below);
> o  it should find the system's default files, including for utmp and wtmp
>    being in different directories;
> o  the "utmp consolidate" idea should now work much better.
> 
> [...]
> The patch is just under 100k in size.  The size is 78% due to the derived
> "configure" script, included for the benefit of those without access to
> "autoconf" and "autoheader".  It comprises patches to the files: 
>    configure.in
>    accconfig.h
>    configure
>    include/config.h.in
>    smbd/connection.c
> and is available at:
> 
>    http://www.dur.ac.uk/~samba/utmp-207.patch

Earlier today (about 10:00 UTC/GMT Tue 2 May), this patch was revised to
try to take account of some comments received about FreeBSD.

Could the utmp enthusiasts try it and report back (including positive
reports, please).  Thanks.

The changes are minor.  But it now does "#include <sys/types.h>", which is
apparently required by FreeBSD: hopefully this inclusion won't break the
code on other systems. 

One issue to consider: the code puts "smb/<n>" in the "ut_line" field (see
in output of "who", "last" etc.).  This seems sympathetic with Solaris,
but is it sympathetic with other systems?  Also, though on Solaris it is
12 bytes, on FreeBSD it is apparently only 8, which limits the decimal
count "<n>" of connections to 9,999 . 

-- 

:  David Lee                                I.T. Service          :
:  Systems Programmer                       Computer Centre       :
:                                           University of Durham  :
:  http://www.dur.ac.uk/~dcl0tdl            South Road            :
:                                           Durham                :
:  Phone: +44 191 374 2882                  U.K.                  :



More information about the samba-technical mailing list