Bug 451493 - ircp -r tries to write files to /
ircp -r tries to write files to /
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: openobex (Show other bugs)
9
All All
low Severity medium
: ---
: ---
Assigned To: Jiri Moskovcak
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-06-14 17:56 EDT by Doncho N. Gunchev
Modified: 2015-02-01 17:48 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.3-13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-09 04:48:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
ircp path and file name calculation fix (893 bytes, patch)
2008-06-14 17:56 EDT, Doncho N. Gunchev
no flags Details | Diff
patch for openobex.spec (1.03 KB, patch)
2008-06-14 17:57 EDT, Doncho N. Gunchev
no flags Details | Diff

  None (edit)
Description Doncho N. Gunchev 2008-06-14 17:56:15 EDT
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 N. Gunchev 2008-06-14 17:56:15 EDT
Created attachment 309371 [details]
ircp path and file name calculation fix
Comment 2 Doncho N. Gunchev 2008-06-14 17:57:41 EDT
Created attachment 309372 [details]
patch for openobex.spec
Comment 3 Fedora Update System 2008-06-18 05:33:53 EDT
openobex-1.3-13.fc9 has been submitted as an update for Fedora 9
Comment 4 Fedora Update System 2008-06-18 06:27:18 EDT
openobex-1.3-12.fc8 has been submitted as an update for Fedora 8
Comment 5 Fedora Update System 2008-06-20 15:12:15 EDT
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-08 22:48:24 EDT
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-08 22:53:44 EDT
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 02:11:28 EDT
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.

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