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
File::Find::find fails on Win32 with follow => 1 #8120
Comments
From @steve-m-hayCreated by @steve-m-hayThe File::Find::find() function fails on Win32 if the "follow => 1" The following test script demonstrates the problem: use strict; This produces the following output on my Windows XP machine: ok 1 Changing the third "follow => 1" to "follow => 0" fixes the failure. Presumably "follow" (and "follow_fast"?) should be no-ops on Win32 since Perl Info
|
From @rgsSteve Hay (via RT) wrote:
Seems quite sensible. |
The RT System itself - Status changed from 'new' to 'open' |
From @steve-m-hayOops! I meant to hit Reply All there. Radan Computational Ltd. The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email. |
From @steve-m-hayMessage RFC822: Rafael Garcia-Suarez wrote:
On perl-5.8.6 I get this from the test script in the bug report: not ok 1: The stat preceding -l _ wasn't an lstat at Earlier perls all the way back to 5.6.0 at least all do this too. They all work if all the "follow => 1"'s are changed. |
From @steve-m-hayRafael Garcia-Suarez wrote:
On perl-5.8.6 I get this from the test script in the bug report: not ok 1: The stat preceding -l _ wasn't an lstat at Earlier perls all the way back to 5.6.0 at least all do this too. They all work if all the "follow => 1"'s are changed. |
From @smpetersOn Wed, Sep 21, 2005 at 04:57:31PM +0200, Rafael Garcia-Suarez wrote:
If its new, then I'm probably the one who broke it. Can you see which versions Steve Peters |
From @smpetersOn Wed, Sep 21, 2005 at 10:29:25AM -0500, Steve Peters wrote:
OK, it looks like there might be a problem with change #23510. I'll take a Steve Peters |
From @smpeters
Hmmm...I backed out that above change to test and the errors were still Anyways, since symbolic links aren't available on Win32, below is a Inline Patch--- lib/File/Find.pm.old Thu Jun 23 11:18:09 2005
+++ lib/File/Find.pm Sun Sep 25 16:38:47 2005
@@ -603,8 +603,9 @@
$pre_process = $wanted->{preprocess};
$post_process = $wanted->{postprocess};
$no_chdir = $wanted->{no_chdir};
- $full_check = $wanted->{follow};
- $follow = $full_check || $wanted->{follow_fast};
+ $full_check = $^O eq 'MSWin32' ? 0 : $wanted->{follow};
+ $follow = $full_check || $^O eq 'MSWin32' ? 0 :
+ $wanted->{follow_fast};
$follow_skip = $wanted->{follow_skip};
$untaint = $wanted->{untaint};
$untaint_pat = $wanted->{untaint_pattern};
|
From @steve-m-hay
Thanks. Applied as change 25597 (with a brief mention of the no-op
Why shouldn't it? The really scary part is that the tests passed |
@steve-m-hay - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37223 (status was 'resolved')
Searchable as RT37223$
The text was updated successfully, but these errors were encountered: