-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
cannot create logfile in a subdirectory #4027
Comments
Hello @axd1967! Thank you for suggesting this enhancement. |
You have an extra |
thank you. that must have been a copy-paste issue into GitHub. The issue remains:
The issue is here: Lines 269 to 271 in 226831f
And mentioned in the manual: stellarium/guide/ch_advanced_use.tex Lines 511 to 518 in 226831f
It is not clear why this limit was imposed. |
Well, apparently the intent was to change the name only. I don't think it's a good design though. I'd let the user specify any path, it's their machine after all, not ours. |
The behavior was changed by security reasons |
Well first, this was introduced in a541fc7 in this form right from the start. And second, what security reasons can be here? This is taken from the direct input by the user themselves! It's not a potentially misbehaving script, nothing like this — just user input. Or would GCC or Vim also need to impose similar restrictions on their command-line arguments for security reasons? |
I cannot remember what we discussed in summer 2023 before I introduced the user-configurable logfile name. Probably this was under influence of the previous "security warning" around potentially "dangerous" scripting output. If you feel it's OK to write elsewhere, we can probably just do it. |
I'm sure it is when it's the user who directed the program to do so. |
in order to not clutter the user directory, logging should be sent to a user-selected subdirectory (if desired).
Despite having created a correct and acceptable subdirectory, following script does not work :
log output:
Solution
The argument to
--log-file
should only be sanitized (reduced to eguserdir/(basename logfile)
) if it cannot be created (eg permission issues).User guide currently explains this behaviour (but not why).
See a541fc7
The text was updated successfully, but these errors were encountered: