Bug 22745 - wu-ftpd hammers argv[0] affecting syslog name
Summary: wu-ftpd hammers argv[0] affecting syslog name
Keywords:
Status: CLOSED DUPLICATE of bug 17807
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: wu-ftpd
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: Need Real Name
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-12-22 15:21 UTC by Need Real Name
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-12 22:08:36 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.