New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl rename function can delete files #1037
Comments
From jmoss@huffmancorp.comThere is a problem with the "rename" function in the latest builds If you use "rename" to change the case of a file name on a network The reason is that code has been added to the "win32_rename" function in MOVEFILE_COPY_ALLOWED means: (quoting the MSDN documentation) "If the file is to be moved to a different volume, the function simulates Therefore if you're just changing the case of the file name the file I will be happy to add code to only use this flag when renaming across Jeff Moss Perl Info
|
From @gsarOn Fri, 14 Jan 2000 13:30:47 EST, "Moss, Jeff" wrote:
Thanks for the diagnosis. Diffs may be sent using perlbug to the same Sarathy |
From [Unknown Contact. See original ticket]At 13:30 -0500 2000-01-14, Moss, Jeff wrote:
Ouch! That's serious. I don't run perl on Win* systems myself. Can
As a reply to this mail. That'll make it hit the perl5-porters list Thanks. -- |
From [Unknown Contact. See original ticket]
I do confirm this behaviour for 5.005_63 and ActiveState perl 5.005_03, Good luck, |
From [Unknown Contact. See original ticket]Original tracking record and reply is as follows: If you think about it. It has to be a M$ bug. Why should perl care how many DA-> This is a bug report for perl from -- ---------- Could you please reply to this message and give them your Jeff Moss -----Original Message----- At 13:30 -0500 2000-01-14, Moss, Jeff wrote: Ouch! That's serious. I don't run perl on Win* systems myself. >I will be happy to add code to only use this flag when renaming As a reply to this mail. That'll make it hit the perl5-porters list and flag it as related to the initial bug report. If you can format your changes as a UNIX-style patch, so much the better. But, if you can't, send whole modified files either as attachments or (if you Thanks. -- |
From @janduboisOn Tue, 18 Jan 2000 11:17:28 +0100, Dominic Dunlop <domo@computer.org>
It is a bug in the underlying Win32 API call: http://support.microsoft.com/support/kb/articles/q193/0/70.asp
I haven't seen any patch yet. I'll add code to check for caseinsensitive equality and do the temporary -Jan |
From [Unknown Contact. See original ticket]Sorry I haven't had a chance to post a patch. I've had I really hadn't thought of this as a Microsoft bug. The I wasn't going to use the MOVEFILE_COPY_ALLOWED mask I hadn't thought about UNC paths. Jeff Moss -----Original Message----- On Tue, 18 Jan 2000 11:17:28 +0100, Dominic Dunlop <domo@computer.org>
It is a bug in the underlying Win32 API call: http://support.microsoft.com/support/kb/articles/q193/0/70.asp
I haven't seen any patch yet. I'll add code to check for caseinsensitive equality and do the temporary -Jan |
From @janduboisOn Thu, 20 Jan 2000 08:09:58 -0500, "Moss, Jeff" <jmoss@huffmancorp.com>
It only uses CopyFile when the source and destination are not on the same
The problem isn't really the MOVEFILE_COPY_ALLOWED flag, but the
So it looks like a simple check for case insensitive equality is the best -Jan |
From @steve-m-hayThe fix proposed by Jan Dubois was applied to perl v5.5.640 (first |
@steve-m-hay - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1988 (status was 'resolved')
Searchable as RT1988$
The text was updated successfully, but these errors were encountered: