Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2010 12:33:54 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Bakul Shah <bakul@bitblocks.com>
Cc:        freebsd-hackers@freebsd.org, Matthew Jacob <mj@feral.com>
Subject:   Re: find(1): Is this a bug or not?
Message-ID:  <86zksrm4f1.fsf@ds4.des.no>
In-Reply-To: <20101129221648.159C45B18@mail.bitblocks.com> (Bakul Shah's message of "Mon, 29 Nov 2010 14:16:47 -0800")
References:  <86r5e3zye4.fsf@pluton.xbsd.name> <4CF40F8F.30303@feral.com> <20101129221648.159C45B18@mail.bitblocks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bakul Shah <bakul@bitblocks.com> writes:
> Index: function.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- function.c  (revision 212707)
> +++ function.c  (working copy)
> @@ -560,7 +560,7 @@
> 		empty =3D 1;
> 		dir =3D opendir(entry->fts_accpath);
> 		if (dir =3D=3D NULL)
> -			err(1, "%s", entry->fts_accpath);
> +			return 0;
> 		for (dp =3D readdir(dir); dp; dp =3D readdir(dir))
> 		        if (dp->d_name[0] !=3D '.' ||
> 			    (dp->d_name[1] !=3D '\0' &&

You should replace the err() call with a warn() call instead of removing
it outright.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zksrm4f1.fsf>