Bug 719509

Summary: $Conf{TopDir} and $Conf{ConfDir} default directories contain extra slash
Product: [Fedora] Fedora Reporter: frenchja
Component: BackupPCAssignee: Bernard Johnson <bjohnson>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: bjohnson, frenchja
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-08 04:12:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description frenchja 2011-07-07 05:14:53 UTC
Description of problem:
Web interface is unable to create a new config.pl. Looking at the $Conf dir in /etc/BackupPC/config.pl reveals that the two of the $Conf directories contain extra trailing slashes. The interface then dies when it tries to write to /etc/BackupPC//config.pl.new.

Additionally, even when fixed it doesn't have the correct permission to write and displays 'TextFileWrite: Failed to write /etc/BackupPC/config.pl.new'

Version-Release number of selected component (if applicable):
Name        : BackupPC
Arch        : x86_64
Version     : 3.1.0
Release     : 17.fc15

Steps to Reproduce:
1. Install BackupPC from yum
2. Fix SELinux issues from bug 719499 using semanage
3. Open http://localhost/BackupPC
4. Attempt to save any changes
  
Actual results:
TextFileWrite: Failed to write /etc/BackupPC/config.pl.new

Expected results:
Saved changes

Comment 1 Bernard Johnson 2011-07-08 03:47:12 UTC
I'd need better evidence this is where your issue is.  If you can't for example:

touch ///tmp///foo

then there is something wrong with your system. Check your logs to see if it's another selinux related issue.

Maybe some addition info regarding what you were doing to generate the error would be useful.

Comment 2 Bernard Johnson 2011-08-08 04:12:22 UTC
If you can provide more information, please reopen the bug.