Skip to content
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

(#9546) Do not execute com, cmd, exe, or bat files if not on windows #550

Closed
wants to merge 1 commit into from
Closed

(#9546) Do not execute com, cmd, exe, or bat files if not on windows #550

wants to merge 1 commit into from

Conversation

jjulien
Copy link

@jjulien jjulien commented Oct 16, 2013

Facter currently only executes com, exe, and bat files if on a windows
system. It should also exclude these on unix flavored systems since
the interpreter for these "cmd.exe" will not be present.

This also supports the use of pluginsync for external facts where in a
hybrid environment external facts for windows may end up getting syncd
to a unix system.

Facter currently only executes com, exe, and bat files if on a windows
system.  It should also exclude these on unix flavored systems since
the interpreter for these "cmd.exe" will not be present.

This also supports the use of pluginsync for external facts where in a
hybrid environment external facts for windows may end up getting syncd
to a unix system.
@puppetcla
Copy link

CLA signed by all contributors.

@ferventcoder
Copy link

Are there cases where someone would see .exe on *nix systems? It's not the convention, but are there any edge cases where it happens?

@ferventcoder
Copy link

Or should we be looking at if the particular item has the executable permission?

@jjulien
Copy link
Author

jjulien commented Oct 18, 2013

This will be possible in a hybrid environment where a puppet module tree is used to service both windows and *nix clients.

The details can be found in the redmine ticket: https://projects.puppetlabs.com/issues/9546

@ferventcoder
Copy link

Merged into stable as 20a2de6. This should be released in 1.7.4. Thanks again for the contribution!

florindragos pushed a commit that referenced this pull request Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants