Bug 22745

Summary: wu-ftpd hammers argv[0] affecting syslog name
Product: [Retired] Red Hat Linux Reporter: Need Real Name <dean-redhat>
Component: wu-ftpdAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED DUPLICATE QA Contact: Need Real Name <pelzak>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-12 22:08:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2000-12-22 15:21:46 UTC
wu-ftpd as shipped hammers argv[0] which affects the name syslog uses to
log.  for example:

Dec 20 10:40:28 twinlark ftpd: w221.z208176006.sjc-ca.dsl.cnc.net:
connected:
IDLE                                                                                                                                                                                                                                                                                                                                                 
[11234]: lost connection to w221.z208176006.sjc-ca.dsl.cnc.net
[208.176.6.221]

everything after "twinlark" and before "[11234]", including the spaces is
the argv[0] value... it's supposed to be the daemon name, such as "ftpd".

the patch to fix this is trivial.  it's included below.

-dean

--- wu-ftpd-2.6.0/src/ftpd.c.noproctitle        Fri Dec 22 07:14:25 2000
+++ wu-ftpd-2.6.0/src/ftpd.c    Fri Dec 22 07:14:56 2000
@@ -6578,7 +6578,7 @@
 #define SPACELEFT(buf, ptr)  (sizeof buf - ((ptr) - buf))
 
 #ifndef SPT_TYPE
-#define SPT_TYPE       SPT_REUSEARGV
+#define SPT_TYPE       SPT_NONE
 #endif
 
 #if SPT_TYPE != SPT_NONE && SPT_TYPE != SPT_BUILTIN

Comment 1 WU-FTPD Development Group 2001-03-12 22:08:33 UTC
PAM bug.

Duplicate of 17807.

Close this.  Except for using SPT_NONE, there is nothing WU-FTPD can do to work 
arround PAM's mistake.

Comment 2 Bernhard Rosenkraenzer 2001-03-16 12:18:04 UTC

*** This bug has been marked as a duplicate of 17807 ***