From owner-cvs-src@FreeBSD.ORG Sat Dec 31 09:06:46 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AC9C16A41F; Sat, 31 Dec 2005 09:06:46 +0000 (GMT) (envelope-from jmallett@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D0D643D48; Sat, 31 Dec 2005 09:06:46 +0000 (GMT) (envelope-from jmallett@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jBV96jTT041420; Sat, 31 Dec 2005 09:06:45 GMT (envelope-from jmallett@repoman.freebsd.org) Received: (from jmallett@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jBV96jiU041419; Sat, 31 Dec 2005 09:06:45 GMT (envelope-from jmallett) Message-Id: <200512310906.jBV96jiU041419@repoman.freebsd.org> From: Juli Mallett Date: Sat, 31 Dec 2005 09:06:45 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/xargs xargs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 09:06:46 -0000 jmallett 2005-12-31 09:06:45 UTC FreeBSD src repository Modified files: usr.bin/xargs xargs.c Log: Check the entire length of the current argument for the EOF string with -E, but don't expect a proper ASCII string to exist right here right now, don't use strcmp(3) which checks for a NUL. As we're still building the argument up, the next character might be garbage. It would probably be just as safe to temporarily write a NUL there, but if we've reached the end of argument memory that might not be the best idea, I think. It's unclear. Doing it this way seems to meet the most with the original intent. PR: 85696 Prodded by: stefanf Revision Changes Path 1.60 +1 -1 src/usr.bin/xargs/xargs.c