Bug 524208

Summary: Error message when starting vsftpd service with multiple configurations
Product: [Fedora] Fedora Reporter: Jan ONDREJ <ondrejj>
Component: vsftpdAssignee: Jiri Skala <jskala>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: aglotov, jskala, mnagy
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-18 19:03:24 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:
Attachments:
Description Flags
Patch to fix this problem. none

Description Jan ONDREJ 2009-09-18 12:00:49 UTC
Created attachment 361634 [details]
Patch to fix this problem.

Description of problem:
When user has multiple configurations for vsftpd, an error message is displayed on startup.

Version-Release number of selected component (if applicable):
vsftpd-2.0.7-2.fc10.i386
I think same problem for fc11 too.

How reproducible:
Always.

Steps to Reproduce:
1. create 2 configurations, for example: cp -a /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd2.conf
2. edit you configuration as you wish, for example listen=no and enable listen_ipv6=yes
3. service vsftpd restart
  
Actual results:
Shutting down vsftpd:                                      [  OK  ]
/tmp/vsftpd: line 40: [: /etc/vsftpd/vsftpd.conf: binary operator expected
Starting vsftpd for vsftpd:                                [  OK  ]
Starting vsftpd for vsftpd2:                               [  OK  ]

Expected results:
/tmp/vsftpd: line 40: [: /etc/vsftpd/vsftpd.conf: binary operator expected
Starting vsftpd for vsftpd:                                [  OK  ]
Starting vsftpd for vsftpd2:                               [  OK  ]

Additional info:
Patch is attached, enough to change:
-                [ -z $CONFS ] && exit 6
+                [ -z "$CONFS" ] && exit 6

Comment 1 Jiri Skala 2009-10-18 19:03:24 UTC
backported to F-10 & F-11