Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140143 - net-ftp/pftpfxp-0.11.4.6-r1 ebuild fixes
Summary: net-ftp/pftpfxp-0.11.4.6-r1 ebuild fixes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-12 11:56 UTC by Daniel Persson
Modified: 2006-07-28 08:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pftpfxp-0.11.4.6-r2.ebuild (pftpfxp-0.11.4.6-r2.ebuild,1.41 KB, application/octet-stream)
2006-07-12 11:57 UTC, Daniel Persson
Details
0.11.4.6-correct_config_fix.patch (0.11.4.6-correct_config_fix.patch,734 bytes, patch)
2006-07-12 11:59 UTC, Daniel Persson
Details | Diff
Patch (0.11.4.6-correct_bookmark_path.patch,3.54 KB, patch)
2006-07-27 09:29 UTC, Daniel Persson
Details | Diff
0.11.4.6-correct_bookmark_path.patch (0.11.4.6-correct_bookmark_path.patch,3.67 KB, patch)
2006-07-28 00:08 UTC, Daniel Persson
Details | Diff
0.11.4.6-correct_bookmark_path.patch (0.11.4.6-correct_bookmark_path.patch,4.09 KB, patch)
2006-07-28 08:27 UTC, Daniel Persson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Persson 2006-07-12 11:56:41 UTC
Hi

This is a revised ebuild of the pftpfxp package. I've made a patch to correct the error where the config files can not be found. The program didn't look in the ~/ folder. It looked in the same folder as the binary. My patch corrects this problem.

/Daniel Persson
Comment 1 Daniel Persson 2006-07-12 11:57:26 UTC
Created attachment 91589 [details]
pftpfxp-0.11.4.6-r2.ebuild
Comment 2 Daniel Persson 2006-07-12 11:57:57 UTC
Comment on attachment 91589 [details]
pftpfxp-0.11.4.6-r2.ebuild

The new revision of the ebuild
Comment 3 Daniel Persson 2006-07-12 11:59:01 UTC
Created attachment 91590 [details, diff]
0.11.4.6-correct_config_fix.patch

Patch to correct the problem. All the old patched from previous revisions should still be available.
Comment 4 Daniel Black (RETIRED) gentoo-dev 2006-07-12 20:07:15 UTC
I didn't like the buffer overflow possibilities with your patch so I created my own. Same effect.

Also patched error to stderr. If this breaks things let me know and i'll fix it.

Thanks Daniel
Comment 5 Daniel Persson 2006-07-27 09:29:49 UTC
Created attachment 92868 [details, diff]
Patch

This is a patch to fix the problem where pftp looks for the bookmarks file in the wrong place.
Comment 6 Daniel Black (RETIRED) gentoo-dev 2006-07-27 17:06:05 UTC
(In reply to comment #5)
> Created an attachment (id=92868) [edit]
> Patch
> 
> This is a patch to fix the problem where pftp looks for the bookmarks file in
> the wrong place. 
> 
looks almost ok.

Needs to free the memory it allocated.

Use free(ptr) after the last useage of ptr. Please reattach patch.

Also, for next time can you do a new bug after bug is resolved. if its the same bug that hasn't been fixed it should be reopened instead. Just makes tracking a lot easier to deal with open bugs.
Comment 7 Daniel Persson 2006-07-28 00:08:51 UTC
Created attachment 92893 [details, diff]
0.11.4.6-correct_bookmark_path.patch

Hi
This is the new patch with it freeing the allocated memory when its done using it.
Comment 8 Daniel Persson 2006-07-28 08:27:54 UTC
Created attachment 92928 [details, diff]
0.11.4.6-correct_bookmark_path.patch

A new patch to fix all cases of free() :)
Comment 9 Daniel Black (RETIRED) gentoo-dev 2006-07-28 08:46:42 UTC
(In reply to comment #8)
> A new patch to fix all cases of free() :)

Well except if the first malloc suceededs and the second runs out of memory :-).
hmm. not likely and it exits anyway.
 
Thanks Daniel and keep up the good work.