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

Remove redirection in restricted mode #1629

Closed

Conversation

rpspringuel
Copy link
Contributor

Since the redirection doesn't work in restricted mode, we only add it when --shell-escape has been given. Further, rather than reusing the glog file, we create a special file for capturing the redirection error. This addresses #1628.

Since the redirection doesn't work in restricted mode, we only add it when `--shell-escape` has been given.  Further, rather than reusing the glog file, we create a special file for capturing the redirection error.  This addresses gregorio-project#1628.
status.shell_escape isn't a boolean, but has three possible states, 0 (none), 1 (anything), and 2 (restricted).  We only want to add the redirection when anything is allowed (as those are the only circumstances in which the redirection will work).
@rpspringuel rpspringuel marked this pull request as draft February 21, 2025 14:26
@rpspringuel
Copy link
Contributor Author

This may be supplanted by #1632. Converting to draft to prevent accidental merges.

@rpspringuel rpspringuel deleted the redirection branch February 26, 2025 22:54
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.

1 participant