bugfindutils - Bugs: bug #9494, xargs -s123 is broken in CVS.

 
 

bug #9494: xargs -s123 is broken in CVS.

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Tue 29 Jun 2004 12:17:53 PM UTC  
 
Category: xargsSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: NoneFixed Release: 4.2.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 08 Aug 2004 11:27:39 AM UTC, comment #2:

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 Administrator
Thu 01 Jul 2004 11:14:08 AM UTC, comment #1:

The patch in CVS for Debian bug #176201 is just wrong. It checks whether arg_max can hold the arguments and the environment, which it does not need to.

I think the correct and much simpler fix is to simply itialize arg_max to minimum(ARG_MAX,20KB+size_of_environment).

Attached is a) patch that implements this and b) the diff against current CVS that undoes the wrong patch and applies the correct one.

Andreas Metzler <ametzler>
Tue 29 Jun 2004 12:17:53 PM UTC, original submission:

The bugfix for Debian bug 176201
cvs diff -r1.17 -r1.18 xargs/xargs.c
broke -s completely:

ametzler@downhill:$ echo foo | ../xargs -s10 echo
../xargs: environment is too large for max-chars size, try using the -s option

thanks, cu andreas
PS: I suggest running make check

Andreas Metzler <ametzler>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #1454:  xargs-fix-complete.diff added by ametzler (2KiB - text/plain - diff against current CVS.)
file #1453:  xargs-bug-diff-to-r1.17.diff added by ametzler (1KiB - text/plain - correct fix.)

 

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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 16 Oct 2004 06:22:20 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.0
Sun 08 Aug 2004 11:27:59 AM UTCjayStatusNone=>Fixed
Thu 01 Jul 2004 11:17:00 AM UTCametzlerAttached File-=>Added xargs-fix-complete.diff, #1445
Thu 01 Jul 2004 11:14:08 AM UTCametzlerAttached File-=>Added xargs-bug-diff-to-r1.17.diff, #1444

Back to the top


Powered by Savane 3.1-cleanup1