Cap command size passed to subshell

Leonard den Ottolander leonard at den.ottolander.nl
Thu Nov 25 11:21:36 UTC 2004


Hello Pavel,

On Thu, 2004-11-25 at 11:51, Pavel Tsekov wrote:
> Why is this patch necessary ? Besides the comment in the source code do
> you have any proof (testcase) that long commands cause breakage ?

I haven't actually tried to crash mc with a long command, but the
comment clearly indicates mc "goes comma" (sic) with large command
lines, so I don't doubt that comment.

Since I haven't tested this the size cap of 4k is a bit arbitrary, but
it seems a reasonable size and is well below the indicated estimated 8k
size limit.

Of course this is open for discussion and investigation.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research





More information about the mc-devel mailing list