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

 
 

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

Submitter:  Andreas Metzler <ametzler>
Submitted:  Tue 29 Jun 2004 12:17:53 PM UTC
   
 
Category:  xargs Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Fixed Release:  4.2.0
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
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

 

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

Date Changed by Updated Field Previous Value => Replaced by
2004-10-16 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.0
2004-08-08 jay StatusNone Fixed
2004-07-01 ametzler Attached File- Added xargs-fix-complete.diff, #1445
2004-07-01 ametzler Attached File- Added xargs-bug-diff-to-r1.17.diff, #1444

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code