Bug 451493

Summary: ircp -r tries to write files to /
Product: [Fedora] Fedora Reporter: Doncho Gunchev <dgunchev>
Component: openobexAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: dfediuck, jmoskovc
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 1.3-13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-09 08:48:29 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
ircp path and file name calculation fix
none
patch for openobex.spec none

Description Doncho Gunchev 2008-06-14 21:56:15 UTC
Description of problem:
ircp -r tries to write files to the '/' directory. ircp_io.c calculates file
name this way:

snprintf(diskname, MAXPATHLEN, "%s/%s", path, name);

which if path is empty results in '' + '/' + 'filename';

Version-Release number of selected component (if applicable):
openobex-1.3-11.fc9.src.rpm

How reproducible:
always

Steps to Reproduce:
1. ircp -r
  
Additional info:
I'll attach rediff-ed patch from debian and a diff for the spec file I used to
get this working.

Comment 1 Doncho Gunchev 2008-06-14 21:56:15 UTC
Created attachment 309371 [details]
ircp path and file name calculation fix

Comment 2 Doncho Gunchev 2008-06-14 21:57:41 UTC
Created attachment 309372 [details]
patch for openobex.spec

Comment 3 Fedora Update System 2008-06-18 09:33:53 UTC
openobex-1.3-13.fc9 has been submitted as an update for Fedora 9

Comment 4 Fedora Update System 2008-06-18 10:27:18 UTC
openobex-1.3-12.fc8 has been submitted as an update for Fedora 8

Comment 5 Fedora Update System 2008-06-20 19:12:15 UTC
openobex-1.3-13.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update openobex'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5523

Comment 6 Fedora Update System 2008-07-09 02:48:24 UTC
openobex-1.3-12.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-07-09 02:53:44 UTC
openobex-1.3-13.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2008-07-26 06:11:28 UTC
openobex-1.3-13.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.