[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find: .: Value too large for defined data type
From: |
James Youngman |
Subject: |
Re: find: .: Value too large for defined data type |
Date: |
Thu, 2 Dec 2004 09:05:30 +0000 |
User-agent: |
Mutt/1.3.28i |
On Wed, Dec 01, 2004 at 05:55:36PM +0000, Tim Waugh wrote:
> With findutils-4.1.20 I've had a report of this error:
>
> find: .: Value too large for defined data type
>
> Here is the bug report:
>
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141167
Thanks. Compare http://savannah.gnu.org/bugs/?func=detailitem&item_id=8455
> It seems that the opendir/readdir/closedir loop in savedir.c is
> getting errno set to EOVERFLOW on return from one of the readdir()
> calls.
I see. That's useful information, thanks. The POSIX standard says :-
|| The readdir() function shall fail if:
||
|| [EOVERFLOW]
|| One of the values in the structure to be returned cannot be
|| represented correctly.
Hence it appears that the directory contains at least one file whose
basename exceeds NAME_MAX characters. NAME_MAX is 255 (in
/usr/include/linux/limits.h) on the system I'm using at the moment.
Could you ask the person submitting the bug report to verify this.
> Should find(1) handle this better?
Probably, but how? By ignoring the entire affected directory?
James.