A question of depth
A question of depth
- Subject: A question of depth
- From: Stéphane Sudre <email@hidden>
- Date: Thu, 8 Jul 2010 16:51:02 +0200
- I'm playing with the following perl line:
perl -e '$a="C"x22;for(1..50000){ ! -d $a and mkdir $a and chdir $a }'
which is from http://www.securityfocus.com/bid/34008/info
I'm checking it on a Mac OS X 10.6.4 system.
This does not produce a crash, it just takes some time to complete.
The problem I'm seeing is that I can't delete the top
CCCCCCCCCCCCCCCCCCCCCC folder. If I put it in the Trash and tell the
Finder to empty the trash, it does nothing.
If I disclose the contents of the CCCCCCCCCCCCCCCCCCCCCC folder in the
Trash (with the alt key), it only shows 44 levels.
When you try to do a rm -r on the folder, it fails because "Too many
open files in system".
- I'm also playing with a slight variation:
perl -e '$a="D"x22;for(1..60){ ! -d $a and mkdir $a and chdir $a }'
Problems:
. Only 44 levels shown in the Trash
. The Empty Trash action does not work
. More surprising, when you run rm -r DDDDDDDDDDDDDDDDDDDDDD, it asks:
override rwxr-xr-x toto/staff for DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/
DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD/DDDDDDDDDDDDDDDDDDDDDD?
I'm not especially interested by all the problems related to
MAX_PATHLEN and sysctl max files but:
[Q] Shouldn't there be a warning dialog in the Finder to report that
the empty request failed?
[Q] Isn't the "override rwxr-xr-x toto/staff" request a bug
considering the request is not made for a hierarchy with only 1 or 2
levels?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden