Re: Is this script safe?
- From: merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz)
- Date: 27 Oct 2005 07:58:47 -0700
>>>>> "Mulander" == Mulander <netprobe@xxxxxxxxx> writes:
Mulander> Why can't you use perl's built in rename(); function ? I think it
Mulander> would be safer.
File::Copy::mv *does* use the built-in rename() if it can.
But rename() can't go across mounted filesystem boundaries, so "mv"
calls out to the O/S rename command (mv on unix, rename on windows)
to do the moving if the internal rename fails.
Or, this is what I remember, having had too little sleep.
In essence, File::Copy::cp emulates unix "cp" as best it can. Ditto "mv".
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.
- References:
- Is this script safe?
- From: Dermot Paikkos
- Is this script safe?
- From: Mulander
- Is this script safe?
- Prev by Date: RE: Is this script safe?
- Next by Date: Re: Is this script safe?
- Previous by thread: Is this script safe?
- Next by thread: Re: Is this script safe?
- Index(es):
Relevant Pages
|
|