Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105639 - coreutils-5.3.0-r1: the --parents option in 'cp' causes strange error messages
Summary: coreutils-5.3.0-r1: the --parents option in 'cp' causes strange error messages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 106133 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-11 15:31 UTC by Michal Januszewski (RETIRED)
Modified: 2005-09-16 06:19 UTC (History)
1 user (show)

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


Attachments
A patch that fixes the described problem. (coreutils-5.3.0-cp-parents.patch,509 bytes, patch)
2005-09-11 15:32 UTC, Michal Januszewski (RETIRED)
Details | Diff
100_all_coreutils-pathname-off-by-one.patch (100_all_coreutils-pathname-off-by-one.patch,2.99 KB, patch)
2005-09-11 17:45 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Januszewski (RETIRED) gentoo-dev 2005-09-11 15:31:35 UTC
When doing:
  cp -pRH --parents /dir1/dir2/dir3/file /tmp/testdir
cp displays the following error message:
  failed to get attributes of dir1/dir2/dir3/file
unless it was called with / as the cwd.

The problem is caused by a miscalculated offset passed to re_protect().
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2005-09-11 15:32:21 UTC
Created attachment 68202 [details, diff]
A patch that fixes the described problem.
Comment 2 SpanKY gentoo-dev 2005-09-11 17:45:13 UTC
Created attachment 68211 [details, diff]
100_all_coreutils-pathname-off-by-one.patch

mmm, no, this should be the correct fix ...

see if it works for me, i cant seem to get attr stuff to work on my box atm
Comment 3 SpanKY gentoo-dev 2005-09-11 17:45:27 UTC
err, see if it works for *you* :)
Comment 4 Michal Januszewski (RETIRED) gentoo-dev 2005-09-12 06:07:20 UTC
Yup, it seems to be working just fine with the patch applied.
Comment 5 SpanKY gentoo-dev 2005-09-12 17:35:30 UTC
added to 5.3.0-r1
Comment 6 SpanKY gentoo-dev 2005-09-16 06:19:05 UTC
*** Bug 106133 has been marked as a duplicate of this bug. ***