Re: wtmp logging.

Bob Luckin <[email protected]> Wed, 17 Nov 2004 12:40:17 -0600
Newsgroups gmane.network.ftp.wuftpd.devel
Message-ID <[email protected]>
The configure option is dodgy under Solaris 2 - it does not always set some
of the needed compiler macros correctly; there should be some emails about
this in the archive (probably 2003 or earlier).  I _think_ that wtmp
logging not working correctly may be one of the results of this...

Cheers, Bob

On Wed, Nov 17, 2004 at 04:32:43PM +0000, Andrew Hardy wrote:
> 
> Thanks for help.
> 
> I have tried the suggested patch and I get this
> 
> machine> patch logwtmp.c < thePatch
>   Looks like a unified context diff.
>   I can't seem to find a patch in there anywhere.
> 
> I'm sure I've copied the patch correctly, perhaps this patch will not work
> from wu-2.6.1?  Or am I doing something else wrong.
> 
> BTW:
> 
> Why does the web page say:
> 
> "...Then use the build script (not configure) to build on Solaris..."
> 
> Building wu-ftpd is incorporated into our build process and executes
> configure to generate the Makefile(s) then executes the make.
> 
> Thanks,
> 
> Andrew H.
> 
> 
> 
> 
> 
> 
> |---------+---------------------------->
> |         |           Ian Willis       |
> |         |           <[email protected]|
> |         |           om>              |
> |         |           Sent by:         |
> |         |           owner-wuftpd-dev@|
> |         |           wu-ftpd.org      |
> |         |                            |
> |         |                            |
> |         |           17/11/2004 15:59 |
> |         |                            |
> |---------+---------------------------->
>   >--------------------------------------------------------------------------------------------------------------------------------------------------|
>   |                                                                                                                                                  |
>   |       To:       [email protected]                                                                                                         |
>   |       cc:       [email protected]                                                                                                           |
>   |       Subject:  Re: wtmp logging.                                                                                                                |
>   >--------------------------------------------------------------------------------------------------------------------------------------------------|
> 
> 
> 
> 
> Solaris 8 uses /var/adm/wtmpx instead of /var/adm/wtmp, try the patch from:
> 
> http://www.landfield.com/wu-ftpd/mail-archive/wuftpd-dev/2002/Sep/0006.html
> 
> Ian
> 
> | From: "Andrew Hardy" <[email protected]>
> | Subject: wtmp logging.
> | To: [email protected]
> | Date: Wed, 17 Nov 2004 15:28:27 +0000
> |
> | We have Solaris as follows:
> |
> | Machine hardware:   sun4u
> | OS version:         5.8
> | Processor type:     sparc
> | Hardware:           SUNW,Ultra-4
> |
> | We are running wu-ftp version Version wu-2.6.1(1).
> |
> | It seems wtmp_logging is not supported, but at various times including
> | logout we get a sys log message saying the file cannot be found.
> |
> | ftpd.c has static int wtmp_logging hard coded to 1.  Before we change
> this
> | static, add a #define or generally hack around with the code, can any one
> | tell me what is the proper and safe way to indicate to the software not
> to
> | imnplement  wtm logging ?
> |
> | Many thanks,
> |
> | Andrew H.
> 
> 
> 
> 
-- 
Bob Luckin      [email protected]      "Coder, adapt; FTP Ada, redo C"