Bug 719509 - $Conf{TopDir} and $Conf{ConfDir} default directories contain extra slash
Summary: $Conf{TopDir} and $Conf{ConfDir} default directories contain extra slash
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: BackupPC
Version: 15
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Bernard Johnson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-07 05:14 UTC by frenchja
Modified: 2011-08-08 04:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-08 04:12:22 UTC
Type: ---


Attachments (Terms of Use)

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.


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