lkml.org 
[lkml]   [1997]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: "while :; do mkdir;cd mkdir;done" [2.1.71] fix
: From: Andrea Arcangeli <arcangeli@mbox.queen.it>

: #!/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 (ftp.win.tue.nl:/pub/linux/misc).
Maybe recent GNU versions of rm will do as well.

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.046 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site