From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 15 15:50:11 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3158D1065670 for ; Sun, 15 Jul 2012 15:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 19EF98FC08 for ; Sun, 15 Jul 2012 15:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q6FFoAs2024360 for ; Sun, 15 Jul 2012 15:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q6FFoAd0024359; Sun, 15 Jul 2012 15:50:10 GMT (envelope-from gnats) Date: Sun, 15 Jul 2012 15:50:10 GMT Message-Id: <201207151550.q6FFoAd0024359@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: bin/169723: [patch] find(1) exits with non-zero return code if any file in a directory is deleted while find(1) is traversing the directory X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 15:50:11 -0000 The following reply was made to PR bin/169723; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, rdna@rdna.ru Cc: Subject: Re: bin/169723: [patch] find(1) exits with non-zero return code if any file in a directory is deleted while find(1) is traversing the directory Date: Sun, 15 Jul 2012 17:43:53 +0200 In PR 169723, you wrote: > [find(1) prints an error message if a file is deleted between readdir > and stat or opendir] This patch appears to match the description of -ignore_readdir_race in the documentation of GNU find. Perhaps it is appropriate to suppress these error messages only if -ignore_readdir_race is given (and -noignore_readdir_race is not given afterwards). Furthermore, it only seems appropriate to me to suppress the error for FTS_DNR and FTS_NS. FTS_ERR covers things like inability to open "." which should never fail (so if they do, find(1) should tell the user about it). -- Jilles Tjoelker