🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.ultrix
Article #7328

Q- fix for 4.2A "Arg list too long." from /bin progs?

#7328
From: Dan Mosedale
Date: Thu, 28 Jan 1993 22:43
24 lines
1243 bytes
If you use programs from /bin (e.g. ls, chmod, egrep, rm, etc) with a
wildcard in a big directory, they barf with "Arg list too long."

For example:

    hostname 232 >  /bin/ls /big_directory/*
    /bin/ls: Arg list too long.

I thought that perhaps this was simply a problem with the various
programs, so I grabbed the GNU fileutils and compiled them.  Same
problem, same error message.  However, I looked at the GNU sources and
saw no such error message.  

Then, doing a strings on /bin/libc.a shows that here lives the error
message.  So presumably, someone is getting an errno of E2BIG and
doing a perror().

Does anyone know how to tweak the kernel and/or do a binary patch to
libc.a to increase the allowed arglist size?

Thanks,

Dan Mosedale
mosedale@genome.stanford.edu
Technical Details
Message-ID: <1993Jan28.224308.9344@leland.Stanford.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!stanford.edu!nntp.Stanford.EDU!fafner.stanford.edu!mosedale

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.ultrix
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!stanford.edu!nntp.Stanford.EDU!fafner.stanford.edu!mosedale
From: mosedale@fafner.stanford.edu (Dan Mosedale)
Subject: Q- fix for 4.2A "Arg list too long." from /bin progs?
Message-ID: <1993Jan28.224308.9344@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: Stanford Yeast Genome Project
Date: Thu, 28 Jan 93 22:43:08 GMT
Lines: 24