bugfindutils - Bugs: bug #11280, -printf '%P' not working correctly?

 
 

bug #11280: -printf '%P' not working correctly?

Submitter:  Chris Faylor <cgf>
Submitted:  Thu 09 Dec 2004 04:01:48 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.2.10 Fixed Release:  4.2.11
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 01 Jan 2005 08:16:34 PM UTC, comment #5: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Fri 10 Dec 2004 06:39:55 PM UTC, comment #4: 

The bug was introduced in find/find.c revision 1.38, replacing process_to_path() with a wrapper around process_path().

The old process_top_path() is available as old_process_top_path() but it is dead code which is never invoked.

I do not understand the code, but for those who do, this might be helpful.

Anonymous
Fri 10 Dec 2004 04:35:12 PM UTC, comment #3: 

The bug was introduced in 4.2.9 (4.2.8 is ok).

Andreas Metzler <ametzler>
Fri 10 Dec 2004 04:21:14 PM UTC, comment #2: 

It looks like regression:

$ find --version
GNU find version 4.2.5
$ find /usr/share/info -name 'find.info*' -printf '%P\n'
find.info.bz2

$ find --version
GNU find version 4.2.10
$ find /usr/share/info -name 'find.info*' -printf '%P\n'
usr/share/info/find.info.bz2

Dmitry V. Levin <ldv>
Fri 10 Dec 2004 04:08:07 PM UTC, comment #1: 

I've confirmed this bug and attached files for the testsuite to catch it.

I do hope I did not mke an error, this is my first contact with dejagnu.

Andreas Metzler <ametzler>
Thu 09 Dec 2004 04:01:48 PM UTC, original submission:  

find /usr/share/info -name 'find.info' -print '%P'

displays:

usr/share/info/find.info

rather than

find.info

Chris Faylor <cgf>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #2199:  printf.xo added by ametzler (33B - application/octet-stream - Testsuite result file for find/testsuite/find.gnu/ to catch printf errors.)
file #2198:  printf.exp added by ametzler (223B - application/octet-stream - Testsuite file for find/testsuite/find.gnu/ to catch printf errors.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 7 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-03 jay Assigned toNone jay
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.11
2004-12-12 jay StatusNone Fixed
2004-12-10 ldv Carbon-Copy- Added ldv
2004-12-10 ametzler Attached File- Added printf.xo, #1966
2004-12-10 ametzler Attached File- Added printf.exp, #1965

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code