Subject: lib/33163: fts: cant allocate memory | filename too long
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <"Auster.Vl."@rtk0.gran.ixn.net.ua>
List: netbsd-bugs
Date: 03/28/2006 22:25:00
>Number: 33163
>Category: lib
>Synopsis: fts: cant allocate memory | filename too long
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 28 22:25:00 +0000 2006
>Originator: Auster Vl.
>Release: NetBSD 3.0.0_STABLE
>Organization:
>Environment:
System: NetBSD gran 3.0.0_STABLE NetBSD 3.0.0_STABLE (grannus-1.661.2.8 $) #1: Fri Mar 3 20:12:00 EET 2006 root@gran:/usr/src/sys/arch/i386/compile/gran i386
>Description:
System allow creation of path longer than MAXPATHLEN,
but rm(1), find(1), ls(1) - dont work on this tree.
>How-To-Repeat:
3.0:
% uname -sr
NetBSD 3.0.0_STABLE
% perl -e '$d="A"x254; for(1..1000) { die($!) unless(mkdir($d) && chdir($d));}'
% /bin/rm -rf AAA*
rm: fts_read: Cannot allocate memory
% /usr/bin/find AAA* >/dev/null
find: fts_read: Cannot allocate memory
% /bin/ls -R AAA* >/dev/null
ls: fts_read: Cannot allocate memory
% gls -R AAA* >/dev/null
gls: [snip Ax254] File name too long
% gfind AAA* >/dev/null
% grm -rf AAA*
%
CURRENT:
% uname -sr
NetBSD 3.99.17
% perl -e '$d="A"x254; for(1..1000) { die($!) unless(mkdir($d) && chdir($d));}'
% /bin/rm -rf AAA*
rm: fts_read: File name too long
% /usr/bin/find AAA* >/dev/null
find: fts_read: File name too long
% /bin/ls -R AAA* >/dev/null
ls: fts_read: File name too long
% gls -R AAA* >/dev/null
gls: [snip Ax254] File name too long
% gfind AAA* >/dev/null
% grm -rf AAA*
%
note:
% pkg_info -Fe `which grm`
coreutils-5.2.1nb2
% pkg_info -Fe `which gfind`
findutils-4.1nb6
%
>Fix:
NA