Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Re: deleting a list of files

by merlyn (Sage)
on Mar 25, 2001 at 21:18 UTC ( [id://67037]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: deleting a list of files
in thread deleting a list of files

I'm just saying that it won't correctly categorize either dot-newline or dot-dot-newline, and that's a potential security hole if someone understands that, or at least an annoyance if it doesn't.

See.. .if I wanted to remove all the files in a directory so I could rmdir it, and I used that regex to skip over dot and dot-dot, I'd also be skipping over dot-newline and dot-dot-newline, and then my rmdir would be failing mysteriously. A potential security hole if the presence of that directory permits me access to something I shouldn't have.

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: Re: Re: deleting a list of files

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: deleting a list of files
by larryl (Monk) on Mar 25, 2001 at 21:35 UTC

    Excellent, that was just what I was looking for! Yet another example where "Expect the Unexpected" is a good rule when you're dealing with anything outside your direct control (filesystem, file contents, user input, ...). Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://67037]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found