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

 
 

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

Submitted by:  Chris Faylor <cgf>
Submitted on:  Thu 09 Dec 2004 04:01:48 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.2.10Fixed Release: 4.2.11

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 7 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 03 Jan 2005 10:15:04 PM UTCjayAssigned toNone=>jay
  Open/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.11
Sun 12 Dec 2004 11:14:54 PM UTCjayStatusNone=>Fixed
Fri 10 Dec 2004 04:21:14 PM UTCldvCarbon-Copy-=>Added ldv
Fri 10 Dec 2004 04:08:07 PM UTCametzlerAttached File-=>Added printf.xo, #1966
Fri 10 Dec 2004 04:06:15 PM UTCametzlerAttached File-=>Added printf.exp, #1965

Back to the top


Powered by Savane 3.1-cleanup1