Issue #12980 has been updated by Josh Cooper.

We've documented Windows filesystem redirection behavior 
<http://docs.puppetlabs.com/windows/running.html#file-system-redirection-in-64-bit-windows-versions>,
 but a lot of people on the mailing list have run into this issue:

<https://groups.google.com/forum/#!msg/puppet-users/A_9i2Wx1yFI/ZUxK5U-yWZYJ><br>
<https://groups.google.com/forum/#!msg/puppet-users/sva-_CmZHdg/jTWLC6Vz4FQJ><br>
<https://groups.google.com/forum/#!msg/puppet-users/gAWFc7fiLyE/cqynD9TtAR4J><br>

Perhaps we should add a warning when accessing files (exec or file resource) in 
`c:\windows\system32` and running on 64-bit OS?

We can't disable filesystem redirection for the ruby process, because it would 
interfere with DLL loading, etc.
----------------------------------------
Bug #12980: Puppet::Util.execute on Windows should search 64-bit path first
https://projects.puppetlabs.com/issues/12980#change-73452

Author: Nan Liu
Status: Accepted
Priority: Normal
Assignee: Josh Cooper
Category: windows
Target version: 2.7.x
Affected Puppet version: 2.7.6
Keywords: windows, 32bit, 64bit, redirection, syswow64
Branch: 


Because ruby is a 32bit process, it searches 32bit path first, which 
unfortunately is typically the wrong binary on 64bit servers:

    "You cannot service a running 64-bit operating system with a 32-bit version 
of DISM.
    Please use the version of DISM that corresponds to your computer's 
architecture."


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to