Re: "while :; do mkdir;cd mkdir;done" [2.1.71] fix

Guest section DW (
Wed, 10 Dec 1997 10:42:47 +0100 (MET)

: From: Andrea Arcangeli <>

: #!/bin/sh
: while :; do mkdir foo; cd foo; done

: create a full pathname that exceed a page memory (do_getname() return
: -ENAMETOOLONG), so can' t be referenced in any way and so can' t be
: deleted from rm -r etc...

: PS. How can force the deleting of a tree created without the patch?

An old and well-known problem.
The tree can be deleted by deltree (
Maybe recent GNU versions of rm will do as well.