Bug 191924

Summary: vsftpd can't start with the default configuration on s390x
Product: Red Hat Enterprise Linux 4 Reporter: Bastien Nocera <bnocera>
Component: vsftpdAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jturner, tao
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2006-0531 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-10 21:43:44 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:
Bug Depends On:    
Bug Blocks: 181409    
Attachments:
Description Flags
vsftpd-cant-start.patch none

Description Bastien Nocera 2006-05-16 14:21:24 UTC
vsftpd-2.0.1-5.EL4.4

In parseconf.c, vsf_parseconf_load_file(), there's a call to:
str_stat(&config_file_str, &p_statbuf);
with fatal errors enabled.

config_file_str doesn't contain the filename, but the content of the config file.

(I don't know how that cannot be a problem on other platforms, might have to do
with the slightly different compiler options on s390x).

1. Install vsftpd
2. service vsftpd start
3. service vsftpd status will say:
vsftpd dead but subsys locked

# vsftpd
500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf

Patch from Adam Bottchen <bottchen.com>

Comment 1 Bastien Nocera 2006-05-16 14:21:25 UTC
Created attachment 129197 [details]
vsftpd-cant-start.patch

Comment 5 Radek Vokál 2006-05-19 10:17:20 UTC
Forget about comment #4. It does crash with fresh install. Tested. 

Comment 6 Jan Lieskovsky 2006-05-19 12:31:23 UTC
Missed this bug by testing vsftpd-2.0.1-5.EL4.4 due 
BZ#158714 â 'service vsftpd start' says OK even if exit status of vsftpd binary
is 1, and does not pass on errors from that binary,

just runned service vsftpd start got [OK], and didn't rechecked the
status of vsftpd via vsftpd status. 

Comment 16 Red Hat Bugzilla 2006-08-10 21:43:44 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0531.html