Re: wtmp logging.
Ian Willis <[email protected]> Wed, 17 Nov 2004 17:56:34 GMT
| Newsgroups | gmane.network.ftp.wuftpd.devel |
|---|---|
| Message-ID | <[email protected]> |
Something is wrong with your patch file. Save the text below between
begin and end to a file and run uudecode <filename>, this will produce
the file wu-ftpd-2.6.1.patch which should have a sum -r of 48133. Then
cd wu-ftpd-2.6.1/src
patch logwtmp.c < wu-ftpd-2.6.1.patch
Configure on Solaris doesn't define some necessary #defines, after
running configure, edit src/config.h, add as the first #defines:
#define SOLARIS_2
#define SVR4
#define USG
#define HAVE_STATVFS
#define NO_UTMP
When working correctly, "strings ftpd | grep wtmp" should show
wtmpx not wtmp.
Ian
begin 644 wu-ftpd-2.6.1.patch
M+2TM(&QO9W=T;7 N8RXP, E3870@2G5L(" Q(#$Y.C$W.C,Y(#(P,# **RLK
M(&QO9W=T;7 N8PE4:'4@3V-T(#(V(#$Y.C Y.C,W(#(P,# *0$ @+38Y+#@@
M*S8Y+#$P($! "B C:6YC;'5D92 B<&%T:&YA;65S+F@B"B C:6YC;'5D92 B
M<')O=&\N:"(*( HK(VEF;F1E9B!.3U]55$U0"B!S=&%T:6,@:6YT(&9D(#T@
M+3$["BTC:69D968@4U92- HK(V5N9&EF"BLC:68@9&5F:6YE9"A35E(T*2 F
M)B A9&5F:6YE9"A.3U]55$U06"D*('-T871I8R!I;G0@9F1X(#T@+3$["B C
M96YD:68*( I 0" M.# L,3 @*S@R+#$Q($! "B!V;VED('=U7VQO9W=T;7 H
M8VAA<B J;&EN92P@8VAA<B J;F%M92P@8VAA<B J:&]S="P@:6YT(&QO9VEN
M*0H@>PH@(" @('-T<G5C="!S=&%T(&)U9CL**R-I9FYD968@3D]?551-4 H@
M(" @('-T<G5C="!U=&UP('5T.PHK(V5N9&EF"B *+2-I9F1E9B!35E(T"BTC
M:69N9&5F($Y/7U5435!8"BLC:68@9&5F:6YE9"A35E(T*2 F)B A9&5F:6YE
M9"A.3U]55$U06"D*(" @(" O*@H@(" @(" J($1A=&4Z(%1U92P@,#D@36%R
M(#$Y.3D@,30Z-3DZ-#(@+3 V,# *(" @(" @*B!&<F]M.B!#:&%D(%!R:6-E
M(#QC<')I8V5 ;6]L8FEO+G5N;6,N961U/@I 0" M,3,S+#D@*S$S-BPY($!
M"B )(" @('-I>F5O9BAS=')U8W0@=71M<'@I*0H@"2 @(" @(" @(" H=F]I
M9"D@9G1R=6YC871E*&9D>"P@8G5F+G-T7W-I>F4I.PH@(" @('T*+2-E;F1I
M9@HM(V5N9&EF"BLC96YD:68@+RH@9&5F:6YE9"A35E(T*2 F)B A9&5F:6YE
M9"A.3U]55$U06"D@*B\*( HK(VEF;F1E9B!.3U]55$U0"B C:69D968@7U]&
M<F5E0E-$7U\*(" @("!I9B H<W1R;&5N*&AO<W0I(#X@551?2$]35%-)6D4I
M('L*( ES=')U8W0@:&]S=&5N=" J:' @/2!G971H;W-T8GEN86UE*&AO<W0I
M.PI 0" M,3DW+#0@*S(P,"PU($! "B )(" @('-I>F5O9BAS=')U8W0@=71M
M<"DI"B )(" @(" @(" @*'9O:60I(&9T<G5N8V%T92AF9"P@8G5F+G-T7W-I
E>F4I.PH@(" @('T**R-E;F1I9B O*B!.3U]55$U0("HO"B!]"G5F
end
| From: "Andrew Hardy" <[email protected]>
| Subject: Re: wtmp logging.
| To: [email protected]
| Date: Wed, 17 Nov 2004 16:32:43 +0000
|
| 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.