NetBSD Problem Report #44179
From www@NetBSD.org Wed Dec 1 06:58:29 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 2872A63BAE8
for <gnats-bugs@gnats.NetBSD.org>; Wed, 1 Dec 2010 06:58:29 +0000 (UTC)
Message-Id: <20101201065829.08DE263BAE5@www.NetBSD.org>
Date: Wed, 1 Dec 2010 06:58:29 +0000 (UTC)
From: darcsis@gmail.com
Reply-To: darcsis@gmail.com
To: gnats-bugs@NetBSD.org
Subject: find(1): don't error out while searching for empty dirs.
X-Send-Pr-Version: www-1.0
>Number: 44179
>Category: bin
>Synopsis: find(1): don't error out while searching for empty dirs.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 01 07:00:00 +0000 2010
>Closed-Date: Wed Aug 22 21:16:22 +0000 2012
>Last-Modified: Wed Aug 22 21:16:22 +0000 2012
>Originator: Denise Guo
>Release: no
>Organization:
XBSD
>Environment:
no
>Description:
don't error out while searching for empty directories when -empty is used.
>How-To-Repeat:
as a non-privileged use, execute:
find /var -empty -type d
>Fix:
--- usr.bin/find/function.c.orig 2010-12-01 14:50:12.000000000 +0800
+++ usr.bin/find/function.c 2010-12-01 14:51:14.000000000 +0800
@@ -453,7 +453,7 @@
empty = 1;
dir = opendir(entry->fts_accpath);
if (dir == NULL)
- err(1, "%s", entry->fts_accpath);
+ return (0);
for (dp = readdir(dir); dp; dp = readdir(dir))
if (dp->d_name[0] != '.' ||
(dp->d_name[1] != '\0' &&
>Release-Note:
>Audit-Trail:
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44179 CVS commit: src/tests/usr.bin/find
Date: Sun, 18 Mar 2012 19:11:31 +0000
Module Name: src
Committed By: jruoho
Date: Sun Mar 18 19:11:31 UTC 2012
Modified Files:
src/tests/usr.bin/find: t_find.sh
Log Message:
Also verify that PR bin/44179 is no longer an issue.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/find/t_find.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 22 Aug 2012 21:16:22 +0000
State-Changed-Why:
fixed (a while back), thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.