bin/56558: [PATCH] locate(1) cannot be safely used with xargs(1)

Eugene Grosbein eugen at kuzbass.ru
Thu Sep 11 22:20:17 PDT 2003


The following reply was made to PR bin/56558; it has been noted by GNATS.

From: Eugene Grosbein <eugen at kuzbass.ru>
To: FUJISHIMA Satsuki <sf at FreeBSD.org>
Cc: Eugene Grosbein <eugen at grosbein.pp.ru>,
	FreeBSD-gnats-submit at FreeBSD.org
Subject: Re: bin/56558: [PATCH] locate(1) cannot be safely used with xargs(1)
Date: Fri, 12 Sep 2003 13:12:18 +0800

 FUJISHIMA Satsuki wrote:
 > 
 > command | tr '\n' '\0' | xargs -0 foo
 > would work for any commands, not limited to locate(1).
 
 It will break when filename contains '\n' that is allowed.
 
 Eugene Grosbein


More information about the freebsd-bugs mailing list